Difference between revisions of "Compiling ScummVM/Visual Studio"

Jump to navigation Jump to search
Simplify instructions
(Simplify instructions)
Line 1: Line 1:
== Compiling ScummVM with Visual Studio under Windows ==
== Installing the needed software and libraries ==


In this page, we guide you through the steps to compile ScummVM with Visual Studio.
In this page, we guide you through the steps to compile ScummVM with Visual Studio.
== Things needed ==
Visual Studio 2008-2019


=== Visual Studio ===
=== Visual Studio ===
Line 12: Line 9:
When installing Visual Studio 2017 or later, make sure to select the "Desktop Development with C++" workload.
When installing Visual Studio 2017 or later, make sure to select the "Desktop Development with C++" workload.


We do support older versions of Visual Studio too. However, on this page we focus on building ScummVM with latest Visual Studio. Building ScummVM with versions older Visual Studio 2008 can require additional work which is not described here.
The instructions below focused on building ScummVM with the latest Visual Studio. Building ScummVM with versions older than 2008 will require additional work which is not described here.


=== Needed Libraries ===
=== Needed Libraries ===
ScummVM relies on third-party libraries to implement certain functionality. Some of these libraries are required, like for example SDL, others are optional, like for example libtheora. We supply a set of prebuilt libraries for Visual Studio 2015 and later. These have been build on Windows 8.1 using the Visual Studio 2015 Community Edition. The libraries can be found [http://downloads.scummvm.org/frs/build/scummvm_libs_2015.zip here].
ScummVM relies on third-party libraries to implement certain functionality. Some of these libraries are required, like for example SDL, others are optional, like for example libtheora.
 
We supply a set of prebuilt libraries for Visual Studio 2015 and later, which have been built on Windows 8.1 using the Visual Studio 2015 Community Edition. The libraries can be found [http://downloads.scummvm.org/frs/build/scummvm_libs_2015.zip here].


=== Installing Libraries ===
=== Installing Libraries ===
The easiest way to make Visual Studio find the supplied libraries is by using the environment variable "SCUMMVM_LIBS". We describe this method now.
The easiest way to make Visual Studio find the supplied libraries is by using the environment variable "SCUMMVM_LIBS". You can set it by performing the following steps:
To make it work you have to follow these steps:
* Unzip the library zip to a directory of your choice, for example "C:\Users\YourUsername\Documents\scummvm_libs_2015".
* Unzip the library zip to a directory of your choice. For example, you can unzip them into "C:\Users\YourUsername\Documents\scummvm_libs_2015".
* Go to Start Menu > Control Panel > System > Advanced Settings > Environment Variables and add a new variable "SCUMMVM_LIBS" with a value of the path you extracted the zip in. It is important that you do point the variable to the folder containing the "bin", "include", and "lib" directories.
* Go to Start Menu > Control Panel > System > Advanced Settings > Environment Variables and add a new variable "SCUMMVM_LIBS" with a value of the path you extracted the zip in. It is important that you do point the variable to the folder containing the "bin", "include", and "lib" directories.


1,502

edits

Navigation menu