MinGW

From UFO:AI
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Dependencies

You will need to install several non standard mingw libs:

NOTE: There is a little bash script in current trunk (in Template:Path) named Template:Path 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 Template:Path is enough, too

Links