Open main menu

Difference between revisions of "Compiling ScummVM/Visual Studio"

Updated instructions for MSVC9, updated the link of the precompiled libraries to one that works with MSVC9 as well
(Updated instructions)
(Updated instructions for MSVC9, updated the link of the precompiled libraries to one that works with MSVC9 as well)
Line 7: Line 7:
== Things needed ==
== Things needed ==


=== Visual Studio 2005 ===
=== Visual Studio 2008 ===
There exist several versions of Visual Studio 2005. A feature comparison can be found  
There exist several versions of Visual Studio 2008. A feature comparison can be found  
[http://msdn.microsoft.com/vstudio/products/compare/default.aspx here]
[http://msdn.microsoft.com/vstudio/products/compare/default.aspx here]


You can obtain the free Express version of VS2005 [http://msdn.microsoft.com/vstudio/express/default.aspx here]
You can obtain the free Express version of VS2008 [http://msdn.microsoft.com/vstudio/express/default.aspx here]




Line 17: Line 17:
To ease the whole process, a package of all the needed precompiled libraries has been created.  
To ease the whole process, a package of all the needed precompiled libraries has been created.  
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/1198167609scummvm_vs_libs.zip precompiled libraries] and the [http://www.libsdl.org/release/SDL-1.2.12-win32.zip latest SDL runtime library] - latest version is 1.2.12 at the time this was written, you can find the latest version [http://www.libsdl.org/download-1.2.php here]
* Unzip the precompiled libraries 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/2008 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 and 2008. 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/Visual_Studio#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)
* Unzip sdl.dll from the SDL runtime in the same directory where the scummvm executable will be created (default is under dits\msvc9\scummvm_Release, substitute msvc9 for msvc8 if you're using Visual Studio 2005 and 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/Visual_Studio#Ready to compile ScummVM|Ready to compile ScummVM]]"




Line 54: Line 54:




=== A note about VS2005 ===
=== A note about VS2008/2005 ===


If you're building the libraries with VS2005, you will get a lot of deprecation warnings. These are normal and nothing to worry about, they're just Microsoft's way of saying "This is a bad code practice. Use this instead". It's not easy to turn these off without several modifications to the code, so just ignore them.  
If you're building the libraries with VS2008/2005, you will get a lot of deprecation warnings. These are normal and nothing to worry about, they're just Microsoft's way of saying "This is a bad code practice. Use this instead". It's not easy to turn these off without several modifications to the code, so just ignore them.  


Read more here:  
Read more here:  
1,502

edits