Code::Blocks Forums
User forums => Using Code::Blocks => Topic started 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 (...) - Release
- Debug
- Release_Windows
- Debug_Windows
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?
-
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..