Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Patches for Compiling Code::Blocks against wxWidgets 3.0 using MinGW GCC 4.8.1
ollydbg:
Search the forum, I see that we have a discussion here: patch to build C::B against wx 3.0 with PCH enabled, its two years ago, not sure the patch is still valid. ;)
oBFusCATed:
Do you want to build 64 bit version of C::B, because the 32bit one builds just fine using the latest TDM build?
ollydbg:
--- Quote from: oBFusCATed on September 23, 2015, 07:27:50 pm ---Do you want to build 64 bit version of C::B,
--- End quote ---
NO. I'm on WinXP 32bit system.
--- Quote ---because the 32bit one builds just fine using the latest TDM build?
--- End quote ---
Yes, it is "fine", but it is now with PCH disabled when build C::B against wx3.x library, because when enabling pch, the big pch file will cause gcc crash. (the pch file when using wx2.8.12 is a bit small, thus it doesn't cause the gcc crash).
MortenMacFly:
--- Quote from: ollydbg on September 22, 2015, 11:52:35 pm ---So, I can turn on the pch feature when building c::b against wx3.x, anyone knows a simple patch to enable pch on the windows C::B wx30 cbp file?
--- End quote ---
Just compare the wx28 and wx30 CBP file:
Its basically:
1.) Enable the warning -Winvalid-pch
2.) remove the NOPCH #define
3.) Add the CB_PRECOMP and WX_PRECOMP #define.
4.) Enable compilation of include/sdk.h and include/sdk_precomp.h
...that should be pretty much it. unfortunately you have to do it for all WX30 files... but for the beginning, the SDK, Core and wxSmithXXX might be well enough to speed up compiling a lot.
don't forget to do a re-build.
ollydbg:
Hi, Morten, thanks, I can successfully build CodeBlocks_wx30.cbp with PCH enabled (under gcc 5.2).
I use my own patch here: patch to build C::B against wx 3.0 with PCH enabled
All the method I used will be posted in a single thread: Build C::B against wx3.02 with gcc 5.2 under Windows
Navigation
[0] Message Index
[*] Previous page
Go to full version