Difference between revisions of "Compiling ScummVM/Visual Studio"

Jump to navigation Jump to search
m
Edited the instructions for statically building zlib in ScummVM. Splitted the SDL and zlib sections
m (Added links to VS2005)
m (Edited the instructions for statically building zlib in ScummVM. Splitted the SDL and zlib sections)
Line 72: Line 72:




=== SDL/zlib ===
=== SDL ===


SDL and zlib are already compiled, so we can skip the compilation step for those two
SDL is already compiled and needs no further changes, so we can skip the compilation step for it


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"


=== zlib ===


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
zlib is already compiled, so we can skip the compilation step for it
 
 
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 and open the solution there. For each of the 3 projects in the solution (example, minigzip and zlib) you need to right-click it in the solution explorer and go to properties. Then, go to Configuration Properties->C/C++->Code Generation and change the Runtime library from "Multi-Threaded DLL (/MD)" to "Multi-Threaded (/MT)", otherwise you'll get a lot of unresolved externals when you try to build ScummVM and the compilation will fail. When you've changed all three projects, compile the solution using the LIB release configuration. Then, open the ScummVM solution and go to Project->Properties, Linker->Input and change the "zldll.lib" directive to "zlib.lib".
 
 
For ScummVM 0.8.0 or earlier, you'll also need zlibwapi. 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. This is a required library up to the stable 0.8.0 release, but it's not required anymore in the latest CVS version




1,502

edits

Navigation menu