User forums > General (but related to Code::Blocks)
wxWidgets Code::Blocks project
Alpha:
I spent some time and assembled a Code::Blocks project to build several configurations of wxWidgets 2.8.12 (with MinGW). The project file saves me a lot of time as Code::Blocks utilizes both of my cores to compile, cutting the time in half. If anyone would like to try it, just decompress the project file (7zip compression) into wxWidgets2.8.12\build\msw, however, I must warn you that although there is a shared multi-lib target, it does fail partway through (if someone knows why, please tell me). (Note the project variable VENDOR is currently set to cb, but can be changed.)
One curious thing I noticed in making this is that although Code::Blocks allows for the import library of a dynamic library to have a custom name, it is not saved upon exit. Perhaps an oversight in the file format?
stahta01:
--- Code: ---"cmd /c if not exist ..\..\lib\gcc_dll\mswu\wx\setup.h copy ..\..\include\wx\msw\setup.h ..\..\lib\gcc_dll\mswu\wx\setup.h"
--- End code ---
After glancing at your cbp file, I noticed a common mistake.
You need to copy ..\..\include\wx\msw\setup0.h to ..\..\include\wx\msw\setup.h if the second file does not exist. This is done the first time the mingw makefile is ran.
Tim S.
ollydbg:
--- Quote from: Alpha on September 01, 2011, 05:01:47 am ---The project file saves me a lot of time as Code::Blocks utilizes both of my cores to compile, cutting the time in half.
--- End quote ---
If you use makefile, you can also achieve this by using something like:
--- Code: ---mingw32-make.exe -j4 -f makefile.gcc
--- End code ---
Anyway, using a cbp file is also great contribution, hope the wx guys will adopt your contribution.
By the way, is it easy to create this cbp file. I would suggest if it possible to create such cbp files for wx's sample code.
stahta01:
--- Quote from: ollydbg on September 01, 2011, 07:16:39 am ---By the way, is it easy to create this cbp file. I would suggest if it possible to create such cbp files for wx's sample code.
--- End quote ---
FYI: I did some research in creating "cbp files for wx's sample code." the work is almost done (or done completely) by the wxCode wxDemo project.
Tim S.
ollydbg:
--- Quote from: stahta01 on September 01, 2011, 07:48:47 am ---
--- Quote from: ollydbg on September 01, 2011, 07:16:39 am ---By the way, is it easy to create this cbp file. I would suggest if it possible to create such cbp files for wx's sample code.
--- End quote ---
FYI: I did some research in creating "cbp files for wx's sample code." the work is almost done (or done completely) by the wxCode wxDemo project.
Tim S.
--- End quote ---
Thanks for the info.
Can you show us the link of wxCode/wxDemo? I just search on the wxCode webpage, but I can't find them. The remind that three years ago, when I'm a beginner to wx and c::b, I would like they should supply the wxSamples' cbp file, so I would easily learn wx code under C::B, otherwise, I need to use the command line to build the wxSample, and not easy to debug.
Navigation
[0] Message Index
[#] Next page
Go to full version