Open main menu

Difference between revisions of "Compiling ScummVM/MinGW"

Fix syntax highlighting
(→‎libmpeg2: Fix libmpeg2 patch.)
(Fix syntax highlighting)
Line 220: Line 220:


Note that if you are compiling x64 i.e. for a 64-bit target, then currently (v0.5.1), the following patch is needed:
Note that if you are compiling x64 i.e. for a 64-bit target, then currently (v0.5.1), the following patch is needed:
<syntax type="diff">
<source lang="diff">
--- libvo/video_out_dx.c.orig  2014-02-17 16:38:24.000000000 +0100
--- libvo/video_out_dx.c.orig  2014-02-17 16:38:24.000000000 +0100
+++ libvo/video_out_dx.c        2014-02-17 16:39:34.000000000 +0100
+++ libvo/video_out_dx.c        2014-02-17 16:39:34.000000000 +0100
Line 240: Line 240:
   
   
     ShowWindow (instance->window, SW_SHOW);
     ShowWindow (instance->window, SW_SHOW);
</syntax>
</source>


=== FLAC ===
=== FLAC ===
Line 259: Line 259:
Unzip the fluidsynth archive in a folder, open MSYS, go to the fluidsynth folder and apply the following patch:
Unzip the fluidsynth archive in a folder, open MSYS, go to the fluidsynth folder and apply the following patch:


<syntax type="diff">
<source lang="diff">
--- include/fluidsynth.h
--- include/fluidsynth.h
+++ include/fluidsynth.h
+++ include/fluidsynth.h
Line 277: Line 277:
  #elif defined(MACOS9)
  #elif defined(MACOS9)
  #define FLUIDSYNTH_API __declspec(export)
  #define FLUIDSYNTH_API __declspec(export)
</syntax>
</source>


Then issue these commands to compile the library:
Then issue these commands to compile the library:
Line 312: Line 312:
Unzip the libfaad2 archive in a folder, open MSYS, go to the libfaad2 folder and apply the following patch:
Unzip the libfaad2 archive in a folder, open MSYS, go to the libfaad2 folder and apply the following patch:


<syntax type="diff">
<source lang="diff">
--- frontend/main.c
--- frontend/main.c
+++ frontend/main.c
+++ frontend/main.c
Line 325: Line 325:
  #include <time.h>
  #include <time.h>
  #endif
  #endif
</syntax>
</source>


Then issue these commands to compile the library:
Then issue these commands to compile the library:
TrustedUser
2,147

edits