Difference between revisions of "MinGW"
(No difference)
|
Latest revision as of 19:03, 5 April 2010
Dependencies
You will need to install several non standard mingw libs:
- SDL MinGW packages
- Freetype developer (-lib) package
- LibIntl developer (-lib) package
- LibIconv developer (-lib) package
- LibJPEG developer (-lib) package
- ZLIB 1.2.3 (-lib) package
- libpng 1.2.8 (-lib) package
- SDL-image
- SDL-mixer
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
- Compiling
- MinGW-Cross-Env
- IMCROSS (has also cross compile support for MacOSX)