“Everyone of us always wanted to have the ability to compile for Windows and Unix in one makefile, right? Unfortunately, there is very few documentation on this topic and I had quite a hard time to get things working the way I wanted to. I wrote this small how-to to share the way I managed to build my toolchain with other people.”
“I didn’t test them on Windows, yet but I strongly believe they will run. If you run into troubles, please report them to me.”
hrmmm
Well, I developed a formula to grow money on trees and a syrum to make you immortal. I haven’t tested it yet, but you can bet it works!
Okay it works on windows, are you happy now?
Here is a much easier way to compile Windows, OS X and Linux games from one project:
http://www.blitzmax.com/Products/blitzmax.php
Sound interesting, but how can I compile my c and c++ files with it?
You mean without Automake and Autoconf?
Set the enviroment variables, and then, instead of gcc/g++, run $CC for C or $CXX for C++.
—
@BlitzBasic: You didn’t get the point of free software, did you? And BlitzBasic isn’t C/C++, which makes it uninteresting for most people.
No, I meant Blitzbasic….it was ironic, because BlitzBasic is 100% not what I want when I try to compile some win32 c/c++/pascal programs under linux for windows.
Uhm, the article is about compiling windows executables while running under linux yourself.
What happens when you need to link with the superproprietary Microseft C runtime? FWIW, why in the world would anybody want to develop software for a niche and proprietary operating system that only runs on stack-based x86 piece of shit CPUs?
I have built the Mingw cross-compiler for Linux several times for building Inkscape for Windows, so I am fairly familiar with the process. But it can be confusing for beginners in the cross-compiler world. So I posted a copy of the current (gcc3.4.4) version of the Mingw cross-compiler, built on Fedora Core 4, at:
http://inkscape.org/win32/xmingw-3.4.4.tar.bz2
It is built to be unpacked to /usr/local/xmingw32. Just put /usr/local/xmingw32/bin at the front of your PATH, remember to call the compiler explicitly such as ‘i686-pc-mingw32-gcc’, and have fun. It has C and C++, and should run on most recent distros without any trouble.
Ishmal
Oops. The path should be:
/usr/local/xmingw
thats nice, compiling SDL ans wxWidgets for this should work the same way. just use another –prefix