Difference between revisions of "Compiling ScummVM/MinGW"

Jump to navigation Jump to search
→‎Building the libraries: add libfaad2 and freetype
m (→‎Building the libraries: add libmad fix for gcc 4.4+)
(→‎Building the libraries: add libfaad2 and freetype)
Line 226: Line 226:


  ./configure --disable-shared --disable-examples
  ./configure --disable-shared --disable-examples
make
To install the library, type:
make install prefix=/mingw
=== libfaad2 ===
Unzip the libfaad2 archive in a folder, open MSYS, go to the libfaad2 folder and apply the following patch:
<syntax type="diff">
--- frontend/main.c
+++ frontend/main.c
@@ -31,7 +31,9 @@
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+#ifndef __MINGW32__
#define off_t __int64
+#endif
#else
#include <time.h>
#endif
</syntax>
Then issue these commands to compile the library:
./configure --disable-shared
make
To install the library, type:
make install prefix=/mingw
=== freetype ===
Unzip the freetype archive in a folder, open MSYS, go to the freetype folder and issue these commands to compile the library:
./configure --disable-shared
  make
  make


2,051

edits

Navigation menu