News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Wx_30_64, svn 9520 does not compile

Started by gd_on, January 03, 2014, 01:24:55 PM

Previous topic - Next topic

gd_on

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
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

MortenMacFly

...works fine here.

But as usual: Please attach the FULL build log, please!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

MortenMacFly

...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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

In fact it is a real problem, which I've just fixed. Thanks for reporting it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: 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.
Ah - thats why it was working for me: I didn't sync with SVN yet... :-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

gd_on

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
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

gd_on

#7
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).
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

oBFusCATed

Hm, I've messed the version number in my last question - it should have been:

Does it work with 64bit wx28?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

gd_on

#9
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?
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

MortenMacFly

Quote from: gd_on on January 04, 2014, 11:50:30 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

gd_on

#11
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
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

killerbot

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]

gd_on

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
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

killerbot

I added this last week to : http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook


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


==> CXXFLAGS+=-fpermissive