MinGW

From UFO:AI

Dependencies

You will need to install several non standard mingw libs:

NOTE: There is a little bash script in current trunk (in build/projects/) named mingw.sh to set your mingw build environment up.

Compile natively

You'll need MSYS to run the configure script, it should then hopefully just be a case of

./configure
make

Cross Compile with Linux

You have to install the mingw package to compile the windows binaries from within Linux. You'll also need to install all the above dependencies correctly. Then do

./configure --host=i586-mingw32msvc --with-sdl-config=i586-mingw32msvc-sdl-config 
make

This assumes that the sdl-config for the mingw is called i586-mingw32msvc-sdl-config replace with whatever the correct sdl-config is (it must also be in your PATH). Note: don't try and use linux's standard sdl-config as this definitely won't work if you don't use.

you can also use:

./configure --host=i586-mingw32msvc --with-sdl-prefix=/usr/i586-mingw32msvc

then a symlink to sdl-config is enough, too

Links