wx-config not found as I would guess that the build system does not *expand* the `wx-config ...`.
The expansion is done by the shell, so it should work. I guess you're using Bourne Shell, which supports backticks. (In Windows the expansion is emulated).
To know if the expansion is working, please switch to full command line (see the screenshot), and post it back the build log.
When I change the Compiler setup to use GMAKE I get duplicate targets...
This might be a bug (I don't know what does gmake).
Is it actually possible to build Code::Blocks from within Code::Blocks???
Of course. Indeed, it is the build method most commonly used.
Already had "Full command line" shown... I like to see what is happening....
There is the log:
Project : Code::Blocks - Unix
Compiler : GNU GCC Compiler (called directly)
Directory : /eng/codeblocks/trunk/src/
--------------------------------------------------------------------------------
Switching to target: AutoRevision
g++ -I/usr/include -c tools/autorevision/autorevision.cpp -o .objs/tools/autorevision/autorevision.o
g++ -L/usr/lib -o tools/autorevision/auto_revision .objs/tools/autorevision/autorevision.o -s
Switching to target: ConsoleRunner
g++ -Os -I/usr/include -c tools/ConsoleRunner/main.cpp -o .objs/tools/ConsoleRunner/main.o
g++ -L/usr/lib -o tools/ConsoleRunner/console_runner .objs/tools/ConsoleRunner/main.o
Switching to target: tinyXML
g++ -Wall -g `wx-config --cflags` -fmessage-length=0 -fexceptions -Winvalid-pch -DcbDEBUG -DCB_PRECOMP -Isdk/wxscintilla/include -I/usr/include -c sdk/tinyxml/tinystr.cpp -o .objs/sdk/tinyxml/tinystr.o
g++: `wx-config: No such file or directory
cc1plus: error: unrecognized command line option "-fcflags`"
Process terminated with status 1 (0 minutes, 5 seconds)
0 errors, 0 warnings
Here the same on the shell command line:
$ g++ -Wall -g `wx-config --cflags` -fmessage-length=0 -fexceptions -Winvalid-pch -DcbDEBUG -DCB_PRECOMP -Isdk/wxscintilla/include -I/usr/include -c sdk/tinyxml/tinystr.cpp -o .objs/sdk/tinyxml/tinystr.o
$
No errors or warnings what-so-ever.
My guess is that for what ever reason the build system is *not* expanding the `wx-config --cflags`
Thanks!
Jan