Open main menu

Difference between revisions of "Compiling ScummVM/Visual Studio"

Updated instructions
(Added links to SDL in the precompiled libraries section)
(Updated instructions)
Line 18: Line 18:
All you need to do is:
All you need to do is:
* Download the [http://www.freefilehoster.com/uploads/1177354703vs2005_libs.zip precompiled libraries] and the [http://www.libsdl.org/release/SDL-1.2.11-win32.zip latest SDL runtime library] - latest version is 1.2.11 at the time this was written, you can find the latest version [http://www.libsdl.org/download-1.2.php here]
* Download the [http://www.freefilehoster.com/uploads/1177354703vs2005_libs.zip precompiled libraries] and the [http://www.libsdl.org/release/SDL-1.2.11-win32.zip latest SDL runtime library] - latest version is 1.2.11 at the time this was written, you can find the latest version [http://www.libsdl.org/download-1.2.php here]
* Unzip the archive maintaining directory structure
* Unzip the precompiled libraries archive maintaining directory structure
* Run install.bat (Visual Studio 2005 only)
* Run install.bat (Visual Studio 2005 only)
* You don't need to add the libraries to Visual Studio, as the installer automatically copies the necessary files in the appropriate directories of Visual Studio. Please note that this installer has only been tested with Visual Studio 2005. If you get errors with earlier versions of Visual Studio, simply copy the directories ''bin'', ''lib'' and ''include'' inside the directory where Visual C++ is installed. If you're not sure how to do that, check the section "[[Compiling_ScummVM/VS2005#Adding_all_libraries_to_Visual_Studio|Adding all libraries to Visual Studio]]" further on
* You don't need to add the libraries to Visual Studio, as the installer automatically copies the necessary files in the appropriate directories of Visual Studio. Please note that this installer has only been tested with Visual Studio 2005. If you get errors with earlier versions of Visual Studio, simply copy the directories ''bin'', ''lib'' and ''include'' inside the directory where Visual C++ is installed. If you're not sure how to do that, check the section "[[Compiling_ScummVM/VS2005#Adding_all_libraries_to_Visual_Studio|Adding all libraries to Visual Studio]]" further on
* Unzip sdl.dll from the SDL runtime in the same directory where the scummvm executable will be created (default is under dits\msvc8\scummvm_Release, substitute msvc8 for msvc7 if you're using Visual Studio 2003)
* Skip to step "[[Compiling_ScummVM/VS2005#Ready to compile ScummVM|Ready to compile ScummVM]]"
* Skip to step "[[Compiling_ScummVM/VS2005#Ready to compile ScummVM|Ready to compile ScummVM]]"


Line 181: Line 182:
The ScummVM executable should be in the folder dists\msvc8\scummvm_Release as "scummvm.exe".
The ScummVM executable should be in the folder dists\msvc8\scummvm_Release as "scummvm.exe".


If you haven't compiled zlib statically into ScummVM and have included zlib support, you'll need to copy "zlib1.dll" in the same directory as scummvm.exe as well. You won't be needing sdl.dll, as the SDL library has been statically built into the executable.
If you haven't compiled zlib statically into ScummVM and have included zlib support, you'll need to copy "zlib1.dll" in the same directory as scummvm.exe as well. Also, you'll need to copy sdl.dll from the SDL runtime archive (or the latest devel archive) in the directory where scummvm.exe is
1,489

edits