Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: gd_on on January 03, 2014, 01:24:55 pm

Title: Wx_30_64, svn 9520 does not compile
Post by: gd_on on January 03, 2014, 01:24:55 pm
Hi,
I tried to compile this new no pch version, but it failed on my PC.
Quote
||=== Générer : tinyXML dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : AutoRevision dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : ConsoleRunner dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : Squirrel dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : Squirrel std lib dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : SqPlus dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : scintilla dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
||=== Générer : sdk dans Code::Blocks wx3.0.x (64 bit) (compilateur : GNU GCC Compiler) ===|
C:\wxWidgets-3.0.0\include\wx\aui\auibook.h|349|warning: 'virtual bool wxAuiNotebook::AddPage(wxWindow*, const wxString&, bool, int)' was hidden [-Woverloaded-virtual]|
include\cbauibook.h|132|warning:   by 'bool cbAuiNotebook::AddPage(wxWindow*, const wxString&, bool, const wxBitmap&)' [-Woverloaded-virtual]|
C:\wxWidgets-3.0.0\include\wx\aui\auibook.h|352|warning: 'virtual bool wxAuiNotebook::InsertPage(size_t, wxWindow*, const wxString&, bool, int)' was hidden [-Woverloaded-virtual]|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|50|error: 'CommentToken' does not name a type|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|50|error: ISO C++ forbids declaration of 'language' with no type [-fpermissive]|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp||In function 'void AnalyseLine(const int&, wxString, bool&, bool&, bool&)':|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|62|error: request for member 'lineComment' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|63|error: request for member 'lineComment' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|65|error: request for member 'streamCommentStart' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|66|error: request for member 'streamCommentStart' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|68|error: request for member 'streamCommentEnd' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|69|error: request for member 'streamCommentEnd' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|79|error: request for member 'streamCommentEnd' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|80|error: request for member 'streamCommentEnd' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|101|error: request for member 'streamCommentStart' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|102|error: request for member 'streamCommentStart' in 'language', which is of non-class type 'const int'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|111|error: 'CommentToken' does not name a type|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|111|error: ISO C++ forbids declaration of 'language' with no type [-fpermissive]|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp||In member function 'void ProjectFileOptionsDlg::FillGeneralProperties()':|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|310|error: invalid use of incomplete type 'class EditorColourSet'|
include\editormanager.h|32|error: forward declaration of 'class EditorColourSet'|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\projectfileoptionsdlg.cpp|318|error: invalid use of incomplete type 'class EditorColourSet'|
include\editormanager.h|32|error: forward declaration of 'class EditorColourSet'|
include\cbauibook.h|147|warning:   by 'bool cbAuiNotebook::InsertPage(size_t, wxWindow*, const wxString&, bool, const wxBitmap&)' [-Woverloaded-virtual]|
||=== Génération de terminé : 18 erreur(s), 4 avertissement(s) (0 minute(s), 7 seconde(s)) ===|

Something is missing ?

gd_on
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: MortenMacFly on January 03, 2014, 02:01:59 pm
...works fine here.

But as usual: Please attach the FULL build log, please!
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: MortenMacFly on January 03, 2014, 02:06:56 pm
...wait a sec: I've had forgotten to update the actual C::B project files.

Make an SVN update, then try again.

If is still does not work make sure you REMOVE the .objs* folder(s) and the *.gch files from previous builds.
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: oBFusCATed on January 03, 2014, 02:26:27 pm
In fact it is a real problem, which I've just fixed. Thanks for reporting it.
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: MortenMacFly on January 03, 2014, 03:15:16 pm
In fact it is a real problem, which I've just fixed. Thanks for reporting it.
Ah - thats why it was working for me: I didn't sync with SVN yet... :-)
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: gd_on on January 04, 2014, 12:12:18 am
OK, better now.
But I have a problem with spellchecker. It makes C::B crash at startup on my PC. No problems in 32 bits with wxWidgets 2.8.
If I validate it after C::B start, it seems to run, but if I stop and restart C::B, C::B crashes just after displaying the start screen (the one where previous projects are displayed). No RPT file produced ! Sorry. But a call to Mr Crosoft !!! >:(

gd_on
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: oBFusCATed on January 04, 2014, 12:31:50 am
Does it work with 64bit wx30?
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: gd_on on January 04, 2014, 10:29:25 am
No. It's in 64 bit that it crashes. I have not tried recently with wx 30 in 32 bits.

gd_on

PS : I've just tried in 32 bit. No crashes at startup, but a message already seen :
wxWidgets Debug Alert
../../src/msw/bitmap.cpp(820) :assert "image.IsOk()" failed in CreateFromImage(): invalid image

But my wxWidgets is created as a "release" version not a "debug" one. And if I build wxWidgets by adding DEBUG_FLAG=0, as in Xaviou's version for tdm 4.8.1 (64 or 32 bit), when I build C::B, it claims at link time that some references are missing (those concerning assert). (by default DEBUG_FLAG is set to 1 apparently, even in a release version).
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: oBFusCATed on January 04, 2014, 11:26:56 am
Hm, I've messed the version number in my last question - it should have been:

Does it work with 64bit wx28?
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: gd_on on January 04, 2014, 11:50:30 am
Wx 28, 64 bit : never tried. But I can ...

gd_on

PS : Oups ! how to do. There is no CodeBlocks_wx28_64.workspace, and all the .cbps accordingly !

PS2 : I can't compile wx 2.8 in 64 bit (with tdm 4.7.1 and 4.8.1 versions)) : I obtain compilation errors ... So, is it worth it?
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: MortenMacFly on January 05, 2014, 11:01:47 am
PS : Oups ! how to do. There is no CodeBlocks_wx28_64.workspace, and all the .cbps accordingly !
Sure not: wx2.8.12 is NOT compatible with 64 bit. There is a chance to heavily patch wx28, but we want to avoid that.

Instead you'll need wx30 - compile it as 64bit and then use CodeBlocks_wx30_64.workspace.
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: gd_on on January 05, 2014, 11:39:24 am
This is what I do. Wx 2.8 was just a suggestion to try to see why I have problems with wx 30 and 64 bits (see posts above...)

gd_on
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: killerbot on January 11, 2014, 08:26:55 pm
fyi : building CB with wx2.8.12 (64 bit builds) works and seems to run ok at first sight (TDM gcc 481)

Build procedure : the same as for the 32 bit build, so no extra settings whatsoever [I need my commi to have3 plugins having specified -fpermissive in their cbp files]
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: gd_on on January 12, 2014, 10:46:59 am
Cool, but have you set something special to compile wx 2.8 in 64 bits.
For me, with the standard build (the same as in 32 bits), but of course after configuring my path to use compilers within MinGW64, I obtain compilation errors after a while. One of the messages seems to suggest to use -fpermissive, but I don't know where I should introduce this setting.

gd_on
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: killerbot on January 12, 2014, 01:27:07 pm
I added this last week to : http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook

Code
mingw32-make -f makefile.gcc CXXFLAGS+=-fpermissive  SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1

==> CXXFLAGS+=-fpermissive
Title: Re: Wx_30_64, svn 9520 does not compile
Post by: gd_on on January 12, 2014, 07:49:57 pm
Thanks for the tip  ;)
As I had already a CXXFLAGS="-fno-keep-inline-dllexport" (as suggested by TDM), I have simply replaced it by CXXFLAGS="-fno-keep-inline-dllexport -fpermissive"
Wx 2.8.12 compiles now in 64 bits and I have been able to compile C::B (svn 9571) with it in 64 bits too.
It seems to work !!!  ;D
- no problems with spellchecker nor with FortranProject plugin apparently.
- No messages about wxDebug alert, even on a release version of Wx 2.8.12.
Of course, it needs more testing than just trying to work with this C::B 64 bits version during a few minutes, but ...

gd_on