Open main menu

Difference between revisions of "Compiling ScummVM/Visual Studio"

Line 5: Line 5:
The following libraries are needed:
The following libraries are needed:


- [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-VC6.zip (1.2.9 is the latest version at this time)  
You need the file SDL-devel-1.2.9-VC6.zip (1.2.9 is the latest version at this time)  


- [http://www.kernel.org/pub/software/devel/nasm/binaries/win32/ NASM]
* [http://www.kernel.org/pub/software/devel/nasm/binaries/win32/ NASM]


- [http://downloads.xiph.org/releases/ogg/ libogg] and [http://downloads.xiph.org/releases/vorbis/ libvorbis] for OGG support
* [http://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  
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
* [ftp://ftp.mars.org/pub/mpeg/ libmad] for MP3 support


- [http://libmpeg2.sourceforge.net/downloads.html libmpeg2] for MPEG-2 support
* [http://libmpeg2.sourceforge.net/downloads.html libmpeg2] for MPEG-2 support


Get the latest mpeg2dec release from this page, libmpeg2 is included there  
Get the latest mpeg2dec release from this page, libmpeg2 is included there  


- [http://www.zlib.net/ zlib]. You need the latest zlib compiled DLL  
* [http://www.zlib.net/ zlib]. You need the latest zlib compiled DLL  


If you wish to compile zlib statically in ScummVM (so that zlib1.dll is not needed), you'll also need the zlib source code. If you wish to compile ScummVM 0.8.0 or earlier with zlib support, you'll need the zlib source as well as [http://www.winimage.com/zLibDll/crtdll.zip crtdll.lib].  
If you wish to compile zlib statically in ScummVM (so that zlib1.dll is not needed), you'll also need the zlib source code. If you wish to compile ScummVM 0.8.0 or earlier with zlib support, you'll need the zlib source as well as [http://www.winimage.com/zLibDll/crtdll.zip crtdll.lib].  
Line 53: Line 53:
SDL and zlib are already compiled, so we can skip the compilation step for those two  
SDL and zlib are already compiled, so we can skip the compilation step for those two  


If you wish to compile zlib statically into ScummVM (and thus, remove the zlib1.dll dependency), you'll also need the zlib source. Go into the projects directory in the zlib source, open the solution there and compile it using the LIB release configuration.
If you wish to compile zlib statically into ScummVM (and thus, remove the zlib1.dll dependency), you'll also need the zlib source. Go into the projects directory in the zlib source, open the solution there and compile it using the LIB release configuration. Then, go to Project->Properties, Linker->Input and change the "zldll.lib" directive to "zlib.lib"




For ScummVM 0.8.0 or earlier, go in the contrib\vstudio\vs8 directory (or vs7 if you're using VS2003), unzip crtdll.lib from the zip you downloaded earlier in the directory and compile zlibvc. You'll need to add the resulting library zlibwapi.lib into ScummVM. To do this, go to Project->Properties, Configuration Properties->C/C++->Preprocessor and add "ZLIB_WINAPI" in the Preprocessor Definitions field. Also, go to linker->input and add "zlibwapi.lib" in the Additional Dependencies field. These two are included by default up to the stable 0.8.0 release, but not in the latest CVS
For ScummVM 0.8.0 or earlier, go in the contrib\vstudio\vs8 directory (or vs7 if you're using VS2003), unzip crtdll.lib from the zip you downloaded earlier in the directory and compile zlibvc. You'll need to add the resulting library zlibwapi.lib into ScummVM. To do this, go to Project->Properties, Configuration Properties->C/C++->Preprocessor and add "ZLIB_WINAPI" in the Preprocessor Definitions field. Also, go to Linker->Input and add "zlibwapi.lib" in the Additional Dependencies field. These two are included by default up to the stable 0.8.0 release, but not in the latest CVS




1,489

edits