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]
Actually, just tested this. It generates the project name correctly, but isn't naming the main.cpp file correctly or adding it to the console.cbp file:
<?xml version="1.0"?>
<!DOCTYPE Code::Blocks_project_file>
<Code::Blocks_project_file>
<FileVersion major="1" minor="1"/>
<Project>
<Option title="Console application"/>
<Option makefile="Makefile"/>
<Build>
<Target title="default">
<Option type="1"/>
<Option parameters=""/>
<Option includeInTargetAll="1"/>
<Option projectCompilerOptionsRelation="3"/>
<Option projectLinkerOptionsRelation="3"/>
<Option projectIncludeDirsRelation="3"/>
<Option projectLibDirsRelation="3"/>
<Compiler>
<Add option=""/>
</Compiler>
<Linker>
<Add option=""/>
</Linker>
</Target>
</Build>
</Project>
</Code::Blocks_project_file>
vs:
<?xml version="1.0"?>
<!DOCTYPE Code::Blocks_project_file>
<Code::Blocks_project_file>
<FileVersion major="1" minor="1"/>
<Project>
<Option title="Console application"/>
<Option makefile="Makefile"/>
<Option makefile_is_custom="0"/>
<Option compiler="0"/>
<Build>
<Target title="default">
<Option output="/root/test3/console"/>
<Option working_dir="."/>
<Option object_output=".objs"/>
<Option deps_output=".deps"/>
<Option external_deps=""/>
<Option type="1"/>
<Option compiler="0"/>
<Option projectResourceIncludeDirsRelation="1"/>
</Target>
</Build>
<Unit filename="main.cpp">
<Option compilerVar="CPP"/>
<Option target="default"/>
</Unit>
</Project>
</Code::Blocks_project_file>
[attachment deleted by admin]