How to install SDL for cross-compiling with MinGW on Linux ========================================================== Here are instructions for building SDL and SDL_mixer so that TomeNET can be cross-compiled for Windows on Linux. I'm running Gentoo Linux and my cross-compiling target is "i686-w64-mingw32". Other distributions may use different names such as "i386-mingw32msvc". - mikaelh SDL --- First, download the sources for SDL. $ wget http://www.libsdl.org/release/SDL-1.2.15.tar.gz Extract the sources. $ tar xzvf SDL-1.2.15.tar.gz Go into the source directory. $ cd SDL-1.2.15 Run configure. $ ./configure --prefix=/usr/i686-w64-mingw32 --host=i686-w64-mingw32 Run make. $ make The build system tried to use my host windres program which didn't work, so I had to manually used i686-w64-mingw32-windres. $ i686-w64-mingw32-windres ./src/main/win32/version.rc build/version.o Now continue with make. $ make And do a make install. $ sudo make install SDL_mixer --------- Download the sources for SDL_mixer. $ wget http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.gz Extract them. $ tar xzvf SDL_mixer-1.2.12.tar.gz Go into the source directory. $ cd SDL_mixer-1.2.12 Run configure. I had to disable mod and mp3 support. $ ./configure --prefix=/usr/i686-w64-mingw32 --host=i686-w64-mingw32 --with-sdl-prefix=/usr/i686-w64-mingw32 --disable-music-mod --disable-music-mp3 Run make. $ make The build system again failed to use the correct windres program so I had to run it manually. $ i686-w64-mingw32-windres version.rc build/version.o Continue with make. $ make And do the install. $ sudo make install Official DLLs ------------- The "official" DLL files for SDL and SDL_mixer can be grabbed from these archives: http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12-win32.zip The official SDL_mixer DLL provides support for playing MP3 files and plenty of other formats.