Just thought I'd put up a separate topic to corfirm that codeblocks works with wxWidgets 2.6.1 under Linux now.
Thanks to byo for figuring out the compile setting that were giving crashes.
The CVS version of the makefile (and .cbp file) still need to incorporate changes to get this running which I've listed below.
These are the minimal changes, as most of the CFLAGS) already there are desired (e.g. -f-message-length):
1. remove -fno-pcc-struct-return :
*_GLOBAL_CFLAGS=
*_PROJECT_CFLAGS= -Wall -g -pipe -fmessage-length=0 `wx-config --cflags`
2. add #defines for scintilla :
scintilla_CFLAGS= $(scintilla_PROJECT_CFLAGS) -DGTK -DSCI_LEXER -DLINK_LEXERS -DWXMAKINGDLL_SCI $(scintilla_GLOBAL_CFLAGS)
3. add -Ldevel for sdk :
sdk_PROJECT_LIBDIRS= -Lsdk/tinyxml -Ldevel
4. add compilerSDCC sources (Should just be added to the .cbp obviously and then exported):
---
plugin_CompilerGCC_OBJS=... .deps/plugins/compilergcc/compilerSDCC.d ....
dist:
@zip ... plugins/compilergcc/compilerSDCC.cpp plugins/compilergcc/compilerSDCC.h ...
.deps/plugins/compilergcc/compilerSDCC.d: plugins/compilergcc/compilerSDCC.cpp
$(plugin_CompilerGCC_CPP) -MM $(plugin_CompilerGCC_CFLAGS) -MF .deps/plugins/compilergcc/compilerSDCC.d -MT .objs/2.6/plugins/compilergcc/compilerSDCC.o $(plugin_CompilerGCC_INCS) plugins/compilergcc/compilerSDCC.cpp
.objs/2.6/plugins/compilergcc/compilerSDCC.o: .deps/plugins/compilergcc/compilerSDCC.d
$(plugin_CompilerGCC_CPP) $(plugin_CompilerGCC_CFLAGS) $(plugin_CompilerGCC_INCS) -c plugins/compilergcc/compilerSDCC.cpp -o .objs/2.6/plugins/compilergcc/compilerSDCC.o
---
5. remove --no-check-associations
from CodeBlocks-unix-wx2.6.0.cbp
So these are the minimal changes needed to the current Linux makefile to get it to compile and run cleanly.
(the GLOBAL_CFLAGS -Dxxx defines from the makefile byo posted shouldn't be hardcoded - they are generated by the `wx-config --cflags` command.
The only PROJECT_CFLAGS which needed to be removed was the no pascal calling convention for struct returns flag: -fno-pcc-struct-return)
Note that there are no crashes, all the dialogs seem to be there and function ok, but there are still bugs that need to be worked out (for example creating a new project doesn't add the .cbp extension so it fails to import it, and creating a new project doesn't generate the .cpp source... but I'm sure there these will be fixed soon enough now that the linux version no longer crashes).
Attached is the modified makefile (CVS makefile with changes listed above).
[attachment deleted by admin]