Difference between revisions of "Compiling ScummVM/Visual Studio"

Jump to navigation Jump to search
→‎Compiling without Console/Status Window: Console is no longer the default
(→‎Compiling without Console/Status Window: Console is no longer the default)
(One intermediate revision by the same user 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://www.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. 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 50: Line 50:
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.
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 without Console/Status Window ==
== Compiling with Console/Text Output ==


If you want to run ScummVM without the console Window being present by default, there are two things you need to do:
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 Project Options for the scummvm project, go to the Linker | System | SubSystem line, and change the /SUBSYSTEM:CONSOLE to /SUBSYSTEM:WINDOWS
* In the create_project command, add <code>--enable-text-console</code>.
* In the file backends/platform/sdl/win32/win32.cpp, change the parameter from true to false in the first line of OSystem_Win32::initBackend:
* In the Project Options for the scummvm project, go to the Linker | System | SubSystem line, and change the /SUBSYSTEM:WINDOWS to /SUBSYSTEM:CONSOLE
ConfMan.registerDefault("console", false);
79

edits

Navigation menu