Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: coditoter on August 10, 2014, 08:33:08 pm

Title: wxWidgets with C::B - Release & Debug Win & Linux configs in one project?
Post by: coditoter on August 10, 2014, 08:33:08 pm
I've cross-compiled MinGW from source using http://wiki.wxwidgets.org/Install_The_Mingw_Cross-Compiler (http://wiki.wxwidgets.org/Install_The_Mingw_Cross-Compiler). I use lubuntu 14.04 LTS. But I'm wondering if it's possible to make sth like it:
Create project (...)
In short - 1 project, 4 configs and 2 compilers. I want to use the same source code. Is it possible?
Could anyone help me with cross-compiling wxWidgets to create such configs?
Title: Re: wxWidgets with C::B - Release & Debug Win & Linux configs in one project?
Post by: spiderkarma on August 18, 2014, 07:44:26 pm
Yes, I have done this.

To start, add your cross compiler to Settings -> "Compiler and debug settings". Be sure to set the toolchain executables.

I then add build targets (say Windows-Debug and Windows-Release) and change the compiler for those targets to use the cross compiler, the libs to link with cross compiled libs, etc..