79
edits
(→Compiling without Console/Status Window: Console is no longer the default) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 15: | Line 15: | ||
=== 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:// | 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]. | ||
=== Installing Libraries === | === Installing Libraries === | ||
Line 30: | Line 30: | ||
=== Building create_project === | === Building create_project === | ||
ScummVM uses a configure/Make based build system. We have a tool to generate Visual Studio project files from this build system. The first | 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 "create_project". | ||
First, open the solution file "devtools\create_project\msvc\create_project.sln". Then simply build the solution. The project file should automatically assure that the resulting "create_project.exe" is copied to "dists\msvc". If not, you will have to copy it yourself. | First, open the solution file "devtools\create_project\msvc\create_project.sln". Then simply build the solution. The project file should automatically assure that the resulting "create_project.exe" is copied to "dists\msvc". If not, you will have to copy it yourself. | ||
Line 46: | Line 46: | ||
Simply open the generated solution file in "dists\msvc\scummvm.sln". Now you can ask it to build the desired configuration. By default it will build a debug configuration which is ideal to hack on ScummVM. | Simply open the generated solution file in "dists\msvc\scummvm.sln". Now you can ask it to build the desired configuration. By default it will build a debug configuration which is ideal to hack on ScummVM. | ||
'''IMPORTANT''': | '''IMPORTANT''': If you get errors about missing DLLs, you'll need to copy them to a location Windows picks up to run the resulting binary. The easiest way to do this is to place the DLL files in the directory where scummvm.exe is. There are multiple folders to choose from, depending on your build configuration. For example, if you build a Win32 Debug configuration, you will need to copy them from "SCUMMVM_LIBS\lib\x86\Debug" to "dists\msvc\Debugx86". | ||
NOTE: Several people have had errors about structure packing under Visual Studio 2019. In such cases, | NOTE: Several people have had errors about structure packing under Visual Studio 2019. In such cases, you need to update [http://libsdl.org/download-2.0.php SDL2] with the latest version. | ||
== Compiling with Console/Text Output == | |||
By default ScummVM is compiled as a Windows subsystem application with no console output. If you need the console, you can do one of the following: | |||
* In the create_project command, add <code>--enable-text-console</code>. | |||
If you | * In the Project Options for the scummvm project, go to the Linker | System | SubSystem line, and change the /SUBSYSTEM:WINDOWS to /SUBSYSTEM:CONSOLE | ||
* In the Project Options for the scummvm project, go to the Linker | System | SubSystem line, and change the /SUBSYSTEM: | |||
edits