|
Renee
|
 |
Reply #16 Posted on: April 19, 2010, 08:25:52 pm |
|
|
 Location: Illinois, USA Joined: Mar 2010
Posts: 2
|
So... Minimalist GNU for Windows... which Wikipedia lists the OS as MS Win... works on Linux? Confused.
Yes. From http://en.wikipedia.org/wiki/MinGW32#Comparison_with_CygwinIt is also possible to cross-compile Windows applications with MinGW-GCC under POSIX systems. This means that developers do not need a Windows installation with MSYS to compile software that will run on Windows without Cygwin. Under Ubuntu type sudo apt-get install mingw32-binutils mingw32 mingw32-runtime Code::Blocks Cross Compilers setup http://wiki.codeblocks.org/index.php?title=Code::Blocks_and_Cross_Compilers
|
|
« Last Edit: April 19, 2010, 08:51:47 pm by Renee »
|
Logged
|
|
|
|
|
Josh @ Dreamland
|
 |
Reply #18 Posted on: April 19, 2010, 10:56:46 pm |
|
|
Prince of all Goldfish
 Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Ism: Seems you set lin-build's compiler to an incorrectly-set-up MinGW, instead of win-build's to a correctly-set-up one.  Either way, I'd prefer a new target be made for that, if any is to be made at all... I'd rather keep the C::B project for native compilations. Cross compiling can be a fickle bitch. It's not so bad for Linux->Windows, but... Either way, that should be handled by ENIGMA and whatever makefile is ultimately called.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
Rusky
|
 |
Reply #19 Posted on: April 19, 2010, 11:04:09 pm |
|
|
 Joined: Feb 2008
Posts: 954
|
You'd have to add the new cross compiler to Code::Blocks in Settings -> Compiler and Debugger. Copy the existing GCC and set the toolchain executables to the MinGW ones. Then you need to create a new build target- right click the project, choose properties and go to the build targets tab. Duplicate one of the existing ones and in its build options, change the selected compiler at the top of the dialog. Building with that new target/compiler should work if you set up the cross-compiler correctly. Setting up the cross compiler correctly is the hard part though- MinGW makes Linux->Win okay but I've never gotten Win->Linux to work. You'd probably need to build some combination of binutils, libstdc++ and gcc (hopefully just the first one). Linux From Scratch might help with this.
|
|
« Last Edit: April 20, 2010, 11:27:57 am by Rusky »
|
Logged
|
|
|
|
|
|
|
|
The 11th plague of Egypt
|
 |
Reply #24 Posted on: April 20, 2010, 03:16:09 pm |
|
|
 Joined: Dec 2009
Posts: 274
|
I'm asking anybody that knows. I opened a topic on the C::B forum, if someone wants to help me getting it to work. But if you don't need any more help compiling on different platforms, then I can just uninstall C::B.
|
|
« Last Edit: April 20, 2010, 03:20:03 pm by The 11th plague of Egypt »
|
Logged
|
|
|
|
|
|
|
|
|
|