Difference between revisions of "Compiling ScummVM/Visual Studio"

Jump to navigation Jump to search
Added instructions for VS2010
(Added a link to the new page)
(Added instructions for VS2010)
Line 30: Line 30:




== Adding all libraries to Visual Studio ==
== Adding all libraries to Visual Studio 2010==
 
The way libraries are added has been changed in Visual Studio 2010, compared to earlier versions. Copy all of the precompiled libraries in a separate folder (e.g. c:\scummvm_libs). Then, there are two different ways of adding this directory to Visual Studio:
* Right click My Computer->Properties->Advanced (Win 2000/XP) or Advanced System Settings->Advanced (Vista/Win 7)->Environment Variables->New (System Variable), with a variable name of "SCUMMVM_LIBS" and a value of the folder where you unpacked your precompiled libraries (e.g. "C:\scummvm_vs_libs")
* If the above method doesn't work, open the ScummVM solution in Visual Studio, and go to View->Property Manager or View->Other Views->Property Manager (depending on your layout configuration). From there, open the scummvm project, and go to the configuration you want to build (e.g. Debug|Win32) and click on "Microsoft.Cpp.Win32.user". From there, go to "VC++ directories" and add the 3 library directories in the appropriate places, i.e.:
 
  Executable Directories: add "C:\scummvm_vs_libs\bin;" at the beginning
  Include Directories: add "C:\scummvm_vs_libs\include;" at the beginning
  Library Directories: add "C:\scummvm_vs_libs\lib\x86" (or x64, if you're building a 64-bit version) at the beginning
 
 
== Adding all libraries to Visual Studio 2005/2008 ==


There are two ways of adding the libraries to Visual Studio. You can either copy all the header and library files inside the appropriate directories of Visual C++ or tell Visual C++ where to look for them.
There are two ways of adding the libraries to Visual Studio. You can either copy all the header and library files inside the appropriate directories of Visual C++ or tell Visual C++ where to look for them.
Line 90: Line 101:
If you got all the libraries compiled, you're ready to compile the latest version of ScummVM!
If you got all the libraries compiled, you're ready to compile the latest version of ScummVM!


Open the solution file in dists\msvc9 (msvc8 for VS2005 and msvc7 for VS2003), select the "Release" configuration from the configuration manager pulldown menu and then go to Build->Build solution, or just press Control-F7 to compile it.
Open the solution file in dists\msvcXX (msvc10 for VS2010, msvc9 for VS2008 or msvc8 for VS2005), select the "Release" configuration from the configuration manager pulldown menu and then go to Build->Build solution, or just press Control-F7 to compile it.


The ScummVM executable should be in the folder dists\msvc9\scummvm_Release as "scummvm.exe".
The ScummVM executable should be in the folder dists\msvc9\scummvm_Release as "scummvm.exe".


You'll need to copy sdl.dll from the SDL runtime archive (or the latest devel archive) in the directory where scummvm.exe is
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

Navigation menu