Difference between revisions of "Compiling ScummVM/MinGW"

Jump to navigation Jump to search
1,355 bytes removed ,  00:33, 25 April 2008
Update
m (Layout)
(Update)
Line 40: Line 40:


* [http://www.libsdl.org/download-1.2.php SDL 1.2].  
* [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)
You need the latest Development Libraries file for Mingw32.  


* [http://www.kernel.org/pub/software/devel/nasm/binaries/win32/ NASM]
* [http://www.kernel.org/pub/software/devel/nasm/binaries/win32/ NASM] Optional, for faster compile of scalers
You need the latest Win32 binary


* [http://downloads.xiph.org/releases/ogg/ libogg] and [http://downloads.xiph.org/releases/vorbis/ libvorbis] for OGG support
* [http://flac.sourceforge.net/download.html FLAC]. Optional, for FLAC support
You need the 1.1.3 source code, as later versions aren't supported under MinGW.


Note that the libraries included in the "vorbis" package won't work. You need libogg and libvorbis, not vorbis  
* [http://downloads.xiph.org/releases/ogg/ libogg] and [http://downloads.xiph.org/releases/vorbis/ libvorbis] Optional, for OGG support
You need the latest libogg and libvorbis (not vorbis) source code.


* [ftp://ftp.mars.org/pub/mpeg/ libmad] for MP3 support
* [ftp://ftp.mars.org/pub/mpeg/ libmad] Optional, for MP3 support
You need the latest libmad source code. 


* [http://libmpeg2.sourceforge.net/downloads.html libmpeg2] for MPEG-2 support
* [http://www.zlib.net/ zlib]. Optional, for compressed saved games.
 
You need the latest zlib source code.   
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).




Line 128: Line 127:




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
After extracting the contents of the SDL archive in a folder, copy all the files in the 'include/SDL' folder to MinGW's include folder, copy all the files in the 'lib' folder to MinGW's lib folder and copy all the files in the 'bin' folder to MinGW's bin folder.  
 
 
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.




Line 191: Line 184:
  cp -p src/.libs /mingw/lib
  cp -p src/.libs /mingw/lib
  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:
./configure --disable-shared
make
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:
mkdir include/mpeg2dec
cp -p include/* include/mpeg2dec
cp -p include/mpeg2dec /mingw/include
cp -p libmpeg2/.libs /mingw/lib
cp -p libmpeg2/.libs/* /mingw/lib




657

edits

Navigation menu