Difference between revisions of "Compiling ScummVM/MinGW"

Jump to navigation Jump to search
→‎SDL: Add note about needing to edit sdl-config / pkg-config outputs for MinGW toolchains
m (Text replacement - "<source lang=" to "<syntaxhighlight lang=")
(→‎SDL: Add note about needing to edit sdl-config / pkg-config outputs for MinGW toolchains)
(One intermediate revision by one other user not shown)
Line 148: Line 148:
=== SDL ===
=== SDL ===


SDL is already compiled and needs no further changes, so we can skip the compilation step for it
SDL is already provided in compiled development archives, so we can skip the compilation step for it


After extracting the contents of the SDL archive in a folder, copy all the files in the 'include/SDL' folder to MinGW's include folder, copy all the files in the 'lib' folder to MinGW's lib folder and copy all the files in the 'bin' folder to MinGW's bin folder.
This can be found from [https://www.libsdl.org here], going to the latest stable download and choosing the Development Libraries - MinGW 32/64-bit option.
 
After extracting the contents of this archive in a folder, copy all the files in the 'include/SDL' folder to MinGW's include folder, copy all the files in the 'lib' folder to MinGW's lib folder and copy all the files in the 'bin' folder to MinGW's bin folder.
 
It may be necessary to modify the bin/sdl-config and lib/pkgconfig/sdl2.pc files which are just text. These files provide the compiler option information to ScummmVM and SDL2 is passing the -mwindows compiler option by default which will result in a valid executable, but with broken console / command-line output. These should be removed or replaced by -mconsole (though this will affect all SDL compiled binaries made by the MinGW toolchain). ScummVM's configure script should deal automatically with this issue in future as the upstream SDL project has indicated that removing this "forced" option is a WONTFIX issue.


If you do wish to recompile SDL from source code, please note the following:
If you do wish to recompile SDL from source code, please note the following:
Line 239: Line 243:
   
   
     ShowWindow (instance->window, SW_SHOW);
     ShowWindow (instance->window, SW_SHOW);
</source>
</syntaxhighlight>


=== FLAC ===
=== FLAC ===
Line 276: Line 280:
  #elif defined(MACOS9)
  #elif defined(MACOS9)
  #define FLUIDSYNTH_API __declspec(export)
  #define FLUIDSYNTH_API __declspec(export)
</source>
</syntaxhighlight>


Then issue these commands to compile the library:
Then issue these commands to compile the library:
Line 324: Line 328:
  #include <time.h>
  #include <time.h>
  #endif
  #endif
</source>
</syntaxhighlight>


Then issue these commands to compile the library:
Then issue these commands to compile the library:
TrustedUser
574

edits

Navigation menu