Open main menu

Difference between revisions of "Compiling ScummVM/Visual Studio"

m
Add a note about the stopgap workaround for VS2019 structure packing
m (Add a note about the stopgap workaround for VS2019 structure packing)
Line 45: Line 45:


'''IMPORTANT''': You'll need to copy the matching SDL.dll file to a location Windows picks up to run the resulting binary. The easiest way to do this is to place the SDL.dll file in the directory where scummvm.exe is. There are multiple SDL.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/SDL.dll".
'''IMPORTANT''': You'll need to copy the matching SDL.dll file to a location Windows picks up to run the resulting binary. The easiest way to do this is to place the SDL.dll file in the directory where scummvm.exe is. There are multiple SDL.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/SDL.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:
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 ==
265

edits