Author Topic: Can anyone compile the contrib workspace from svn 10127?  (Read 3324 times)

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Can anyone compile the contrib workspace from svn 10127?
« on: February 27, 2015, 12:42:08 am »
Windows 7 64bit using tdm-mingw 4.7.2 When compiling the the contrib pluggins workspace I get the following errors:

Code
mingw32-g++.exe -Wall -O2 -pipe -fmessage-length=0 -fexceptions -mthreads -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DwxUSE_UNICODE -DCC_PARSER_TEST -IC:\Programming\wxWidgets\WX_2_8_BRANCH\include -IC:\Programming\wxWidgets\WX_2_8_BRANCH\lib\gcc_dll\mswu -I..\..\include -I..\..\sdk\wxscintilla\include -Icctest -Iparser -I. -c C:\Programming\codeblocks\src\plugins\codecompletion\parser\cclogger.cpp -o ..\..\.objs\plugins\codecompletion\cctest\parser\cclogger.o
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp: In member function 'void CCDebugInfo::OnGoDeclClick(wxCommandEvent&)':
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:792:5: error: 'cbEditor' was not declared in this scope
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:792:15: error: 'ed' was not declared in this scope
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:792:30: error: expected primary-expression before ')' token
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:792:31: error: expected ';' before 'Manager'
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:794:48: error: invalid use of incomplete type 'class EditorManager'
In file included from ..\..\include/logmanager.h:9:0,
                 from C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:25:
..\..\include/manager.h:28:7: error: forward declaration of 'class EditorManager'
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp: In member function 'void CCDebugInfo::OnGoImplClick(wxCommandEvent&)':
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:816:5: error: 'cbEditor' was not declared in this scope
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:816:15: error: 'ed' was not declared in this scope
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:816:30: error: expected primary-expression before ')' token
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:816:31: error: expected ';' before 'Manager'
C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:818:48: error: invalid use of incomplete type 'class EditorManager'
In file included from ..\..\include/logmanager.h:9:0,
                 from C:\Programming\codeblocks\src\plugins\codecompletion\parser\ccdebuginfo.cpp:25:
..\..\include/manager.h:28:7: error: forward declaration of 'class EditorManager'
Process terminated with status 1 (0 minute(s), 11 second(s))

Looks like that recent code completion update might be missing some stuff...

Oh also, is there a way to change the font color within code block tags on this forum? Might make reading logs easier if we could submit them all nice and color coded so the errors stand out like in CB's output log.
« Last Edit: February 27, 2015, 12:45:08 am by ouch »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5380
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Can anyone compile the contrib workspace from svn 10127?
« Reply #1 on: February 27, 2015, 01:29:03 am »
I will look into this issue today.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7180
    • My Best Post
Re: Can anyone compile the contrib workspace from svn 10127?
« Reply #2 on: February 27, 2015, 01:45:32 am »
I will look into this issue today.

Possible patch; it fixed the compile issue for me on the cctest plugin

Code
Index: src/plugins/codecompletion/parser/ccdebuginfo.cpp
===================================================================
--- src/plugins/codecompletion/parser/ccdebuginfo.cpp (revision 10127)
+++ src/plugins/codecompletion/parser/ccdebuginfo.cpp (working copy)
@@ -22,6 +22,8 @@
     #include <wx/string.h>
     //*)
 
+    #include <cbeditor.h>
+    #include <editormanager.h>
     #include <logmanager.h>
 #endif
 

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5380
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Can anyone compile the contrib workspace from svn 10127?
« Reply #3 on: February 27, 2015, 07:10:19 am »
Thanks Tim, fixed in the trunk now.
Thanks ouch for the report.

Oh also, is there a way to change the font color within code block tags on this forum? Might make reading logs easier if we could submit them all nice and color coded so the errors stand out like in CB's output log.
Not sure what exact color style you want. You mean error messages on red color, warning messages on blue color?

Maybe, you can try this: FireFox Stylish add on. I just use to change the font size, see:custom CSS to change the font size in code and quote tags for our forum
 
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: Can anyone compile the contrib workspace from svn 10127?
« Reply #4 on: February 27, 2015, 11:19:02 pm »
Yep, that fixed it. But now I'm getting an error with the fortran plugin:

Code
mingw32-g++.exe -Wall -O2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -I..\..\..\include -I..\..\..\sdk\wxscintilla\include -IC:\Programming\wxWidgets\WX_2_8_BRANCH\include -IC:\Programming\wxWidgets\WX_2_8_BRANCH\lib\gcc_dll\mswu -c C:\Programming\codeblocks\src\plugins\contrib\FortranProject\fpoptionsdlg.cpp -o ..\..\..\.objs\plugins\contrib\FortranProject\fpoptionsdlg.o
C:\Programming\codeblocks\src\plugins\contrib\FortranProject\fortranproject.cpp:34:9: error: #include expects "FILENAME" or <FILENAME>

and a little later:

Code
mingw32-g++.exe -Wall -O2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -I..\..\..\include -I..\..\..\sdk\wxscintilla\include -IC:\Programming\wxWidgets\WX_2_8_BRANCH\include -IC:\Programming\wxWidgets\WX_2_8_BRANCH\lib\gcc_dll\mswu -c C:\Programming\codeblocks\src\plugins\contrib\FortranProject\makefilegen.cpp -o ..\..\..\.objs\plugins\contrib\FortranProject\makefilegen.o
C:\Programming\codeblocks\src\plugins\contrib\FortranProject\fortranproject.cpp:35:2: error: expected unqualified-id before '<' token

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5380
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Can anyone compile the contrib workspace from svn 10127?
« Reply #5 on: March 01, 2015, 12:43:21 pm »
Yep, that fixed it. But now I'm getting an error with the fortran plugin:
...
You may report this failure in Code::Blocks IDE for Fortran google group
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: Can anyone compile the contrib workspace from svn 10127?
« Reply #6 on: March 02, 2015, 11:12:19 pm »
Ok, just did.