Open main menu

Difference between revisions of "Compiling ScummVM/Visual Studio"

no edit summary
Line 48: Line 48:
'''IMPORTANT''': You'll need to copy the matching SDL2.dll file to a location Windows picks up to run the resulting binary. The easiest way to do this is to place the SDL2.dll file in the directory where scummvm.exe is (dists\msvc\Debug). There are multiple SDL2.dll files to choose from, depending on your build configuration. Simply pick the right one from the prebuilt libraries. For example, if you build a Win32 Debug configuration, you will need to use "libs/x86/Debug/SDL2.dll".
'''IMPORTANT''': You'll need to copy the matching SDL2.dll file to a location Windows picks up to run the resulting binary. The easiest way to do this is to place the SDL2.dll file in the directory where scummvm.exe is (dists\msvc\Debug). There are multiple SDL2.dll files to choose from, depending on your build configuration. Simply pick the right one from the prebuilt libraries. For example, if you build a Win32 Debug configuration, you will need to use "libs/x86/Debug/SDL2.dll".


NOTE: Several people have had errors about structure packing under Visual Studio 2019. In such cases, whilst we haven't figured out a proper solution, we have a stop-gap workaround for now.. go to Project Options -> C/C++ -> Preprocessor, and put the following text at the start of the Preprocessor Definitions line:
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.
WINDOWS_IGNORE_PACKING_MISMATCH;
 
Not forgetting the semicolon at the end. This may be risky, but so far the resulting ScummVM executables seem to work okay.


== Compiling without Console/Status Window ==
== Compiling without Console/Status Window ==
78

edits