User forums > Nightly builds
The 12.11 RC2 (23 November 2012 build 8598) is out.
Folco:
Thanks Jens ! Thanks the whole CB team !!!
Sphere:
Greetings, and thanks for another awesome nightly.
I was wondering about some default behaviour when creating a new wxWidgets project using the provided templates.
1st Iteration:
I created a new frame-based wxWidgets (2.8.x) project from the new projects menu with wxSmith as the preferred GUI builder. For the advanced "wxWidgets Library Settings" options, I chose "Use default wxWidgets configuration".
In this case both release and debug builds built out of the box.
2nd Iteration:
In this case I did the same as above, but for the advanced "wxWidgets Library Settings" options, I chose "Use Advanced options" with the dynamic and unicode checkboxes both checked. In this case only the release build buildt successfully and the debug build failed with the error message "wx/app.h: No such file or directory". It turned out that I did not have the debug build of wxWidgets installed so I installed it, and then both builds built successfully. But that made me wonder why the debug build of the 1st iteration worked, so I had a look at the cbp files.
For iteration 1, there is a common set of parameters:
--- Code: ---<CodeBlocks_project_file>
<Project>
...
<Compiler>
<Add option="`wx-config --cflags`" />
<Add option="-Wall" />
</Compiler>
<Linker>
<Add option="`wx-config --libs`" />
</Linker>
...
</Project>
</CodeBlocks_project_file>
--- End code ---
whereas for iteration 2 there are separate configs each for debug:
--- Code: ---<CodeBlocks_project_file>
...
<Project>
...
<Build>
<Target title="Debug">
...
<Compiler>
<Add option="-g" />
<Add option="`wx-config --version=2.8 --static=no --unicode=yes --debug=yes --cflags`" />
</Compiler>
<Linker>
<Add option="`wx-config --version=2.8 --static=no --unicode=yes --debug=yes --libs`" />
</Linker>
</Target>
</Build>
</Project>
</CodeBlocks_project_file>
--- End code ---
and release:
--- Code: ---<CodeBlocks_project_file>
...
<Project>
...
<Build>
<Target title="Release">
...
<Compiler>
<Add option="-O2" />
<Add option="`wx-config --version=2.8 --static=no --unicode=yes --debug=no --cflags`" />
</Compiler>
<Linker>
<Add option="-s" />
<Add option="`wx-config --version=2.8 --static=no --unicode=yes --debug=no --libs`" />
</Linker>
</Target>
</Build>
</Project>
</CodeBlocks_project_file>
--- End code ---
So it turns out that the 1st iteration never actually builds/links against the debug wx libraries. Is this by design, since it seems counter-intuitive?
Cheers and thanks again,
Chris
(Codeblocks SVN 8598 (from https://launchpad.net/~pasgui/+archive/ppa/) on Ubuntu 12.10 x64 with wxGTK 2.8.12.1)
gd_on:
I've just tried to compile C::B svn 8604 on windows, but it complains for a new cb_release_type environment variable not defined. What are we supposed to put in it ?
gd_on
MortenMacFly:
--- Quote from: gd_on on November 24, 2012, 12:10:04 pm ---I've just tried to compile C::B svn 8604 on windows, but it complains for a new cb_release_type environment variable not defined. What are we supposed to put in it ?
--- End quote ---
Either -g or -O2.
kipade:
Its was the first try of CodeBlocks under MS Windows with mingw, but, I found it could not load a UTF-8 encoded text file(including *.c and *.cpp source file)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version