* [http://www.libsdl.org/download-1.2.php SDL 1.2].
You need the file
SDL-devel-1.2.9-mingw32. tar.gz (1.2.9 is the latest version at this time)
* [http://www.kernel.org/pub/software/devel/nasm/binaries/win32/ NASM]
downloads. xiph. org/ releases/ogg/ libogg] and [http://downloads. xiph.org/releases/vorbis/ libvorbis] for OGG support
Note that the libraries included in the "vorbis " package won't work. You need libogg and libvorbis , not vorbis
* [ftp://ftp.mars.org/pub/mpeg/ libmad] for MP3 support
* [http://libmpeg2.sourceforge.net/downloads.html libmpeg2] for MPEG-2 support Get the latest mpeg2dec release from this page, libmpeg2 is included there * [http://www.zlib.net/ zlib]. You need the latest zlib source code. * [http://flac.sourceforge.net/download.html FLAC]. You need the latest full source code (1.1.3).
After extracting the contents of the SDL archive in a folder, copy all the files in SDL'
s include folder in MinGW's include folder and all the files in SDL' s lib folder in MinGW's lib folder . Also, copy SDL.dll and i386-mingw32msvc-sdl-config in MinGW' s bin folder . Rename i386-mingw32msvc-sdl-config to sdl-config Now, we need to setup SDL. Go to SDL's folder and type: make install prefix=/mingw Note the forward slash, since you are using MSYS.
cp -p src/.libs /mingw/lib
cp -p src/.libs/* /mingw/lib
=== libmpeg2 ===
Unzip the mpeg2dec archive in a folder, open MSYS, go to the mpeg2dec folder and issue these commands to compile the library:
To install the library, type:
make install prefix=/mingw
Alternatively, after you compile mpeg2dec, go to its include directory, create a folder "mpeg2dec" in there and copy all files from the include folder in this subfolder. So you should end up with 2 directories, "include" and "include\mpeg2dec" with the same files. This is needed, as ScummVM includes files from the "mpeg2dec" directory. Copy this mpeg2dec folder inside MinGW's include folder. Then, copy lib\.libs folder from libmpeg2 folder as-is inside MinGW's lib folder, and also copy the files from the lib\.libs folder from libmpeg2 folder inside MinGW's lib folder (because libmpeg2 libraries are searched both in the lib and in the lib\.libs folder)
You can do this using Explorer or by typing these commands in MSYS inside the mpeg2dec folder:
cp -p include/* include/mpeg2dec
cp -p include/mpeg2dec /mingw/include
cp -p libmpeg2/.libs /mingw/lib
cp -p libmpeg2/.libs/* /mingw/lib