Difference between revisions of "Compiling ScummVM/Visual Studio"

Jump to navigation Jump to search
→‎Installing Libraries: Mention SystemPropertiesAdvanced.exe shortcut, for better Windows versions/localisations portability
(→‎Installing Libraries: Mention SystemPropertiesAdvanced.exe shortcut, for better Windows versions/localisations portability)
 
(One intermediate revision by the same user not shown)
Line 23: Line 23:
The easiest way to make Visual Studio find the supplied libraries is by using the environment variable <code>SCUMMVM_LIBS</code>. You can set it by performing the following steps:
The easiest way to make Visual Studio find the supplied libraries is by using the environment variable <code>SCUMMVM_LIBS</code>. You can set it by performing the following steps:
* Unzip the library zip to a directory of your choice, for example <code>C:\Users\YourUsername\Documents\scummvm_libs_2015</code>.
* Unzip the library zip to a directory of your choice, for example <code>C:\Users\YourUsername\Documents\scummvm_libs_2015</code>.
* Go to Start Menu > Control Panel > System > Advanced Settings > Environment Variables and add a new variable <code>SCUMMVM_LIBS</code> 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 <code>bin\</code>, <code>include\</code>, and <code>lib\</code> directories.
* Go to Start Menu > Control Panel > System > Advanced Settings > Environment Variables (or <code>Win</code>+<code>R</code> and then <code>SystemPropertiesAdvanced.exe</code>) and add a new variable <code>SCUMMVM_LIBS</code> 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 <code>bin\</code>, <code>include\</code>, and <code>lib\</code> directories.


== Preparing the Project Files ==
== Preparing the Project Files ==
Line 31: Line 31:
ScummVM uses a configure/Make based build system. We have a tool to generate Visual Studio project files from this build system. The first step you need to take is building this tool called <code>create_project.exe</code>.
ScummVM uses a configure/Make based build system. We have a tool to generate Visual Studio project files from this build system. The first step you need to take is building this tool called <code>create_project.exe</code>.


First, open the solution file <code>devtools\create_project\msvc\create_project.sln</code>. Then simply build the solution. The project file should automatically assure that the resulting <code>create_project.exe</code> is copied to <code>dists\msvc\</code>.
First, open the solution file <code>devtools\create_project\msvc\create_project.sln</code> (either from the File Explorer or from the File > Open project/solution menu). Then simply build the solution, with Build > Build solution. If this doesn't work, make sure that the Visual Studio C++ tools have been properly set up, as [[#Visual_Studio|explained above]].
 
The project file should automatically assure that the resulting <code>create_project.exe</code> is copied to <code>dists\msvc\</code>.


=== Generating the Project Files ===
=== Generating the Project Files ===
149

edits

Navigation menu