Open main menu

Difference between revisions of "Compiling ScummVM/MinGW"

no edit summary
(Add instructions for building GLEW)
Line 17: Line 17:


* [http://www.libsdl.org/download-1.2.php SDL 1.2].  
* [http://www.libsdl.org/download-1.2.php SDL 1.2].  
** You need the latest SDL 1.2 source code revision from Mercurial ([https://hg.libsdl.org/SDL/archive/1bffae6992b0.tar.bz2 1bffae6992b0] at the time of writing).
** You need the latest SDL 1.2 source code revision from Mercurial ([https://hg.libsdl.org/SDL/archive/fa8bba1d6b13.tar.bz2 fa8bba1d6b13] at the time of writing).


* [https://www.libsdl.org/projects/SDL_net/release-1.2.html SDL_net 1.2]. Optional, for network support.
* [https://www.libsdl.org/projects/SDL_net/release-1.2.html SDL_net 1.2]. Optional, for network support.
Line 26: Line 26:


* [http://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D NASM]. Optional, for faster compile of scalers
* [http://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D NASM]. Optional, for faster compile of scalers
** You need the latest Win32 binary ([http://www.nasm.us/pub/nasm/releasebuilds/2.15.03/win32/ v2.15.03] at the time of writing).
** You need the latest Win32 binary ([http://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win32/ v2.15.05] at the time of writing).


* [https://cmake.org/ CMake]. Optional, for compiling libjpeg-turbo.
* [https://cmake.org/ CMake]. Optional, for compiling libjpeg-turbo.
Line 48: Line 48:


* [https://github.com/knik0/faad2 libfaad2]. Optional, for AAC support.
* [https://github.com/knik0/faad2 libfaad2]. Optional, for AAC support.
** You need the latest libfaad2 source code ([https://github.com/knik0/faad2/releases/tag/2_9_2 v2.9.2] at the time of writing).
** You need the latest libfaad2 source code ([https://github.com/knik0/faad2/releases/tag/2_10_0 v2.10.0] at the time of writing).


* [http://www.libpng.org/pub/png/libpng.html libpng]. Optional, for PNG support.
* [http://www.libpng.org/pub/png/libpng.html libpng]. Optional, for PNG support.
Line 54: Line 54:


* [http://download.savannah.gnu.org/releases/freetype/ freetype]. Optional, for TTF support.
* [http://download.savannah.gnu.org/releases/freetype/ freetype]. Optional, for TTF support.
** You need the latest freetype source code ([http://download.savannah.gnu.org/releases/freetype/freetype-2.10.2.tar.xz v2.10.2] at the time of writing).
** You need the latest freetype source code ([http://download.savannah.gnu.org/releases/freetype/freetype-2.10.4.tar.xz v2.10.4] at the time of writing).


* [http://www.fluidsynth.org/ fluidsynth]. Optional, for soundfont MIDI support.
* [http://www.fluidsynth.org/ fluidsynth]. Optional, for soundfont MIDI support.
Line 63: Line 63:


* [https://libjpeg-turbo.org/ libjpeg-turbo]. Optional, for JPEG support.
* [https://libjpeg-turbo.org/ libjpeg-turbo]. Optional, for JPEG support.
** You need the latest libjpeg-turbo source code ([https://sourceforge.net/projects/libjpeg-turbo/files/2.0.5/libjpeg-turbo-2.0.5.tar.gz/download v2.0.5] at the time of writing).
** You need the latest libjpeg-turbo source code ([https://sourceforge.net/projects/libjpeg-turbo/files/2.0.6/libjpeg-turbo-2.0.6.tar.gz/download v2.0.6] at the time of writing).


* [http://liba52.sourceforge.net/ liba52]. Optional, for AC-3 support.
* [http://liba52.sourceforge.net/ liba52]. Optional, for AC-3 support.
Line 69: Line 69:


* [https://curl.haxx.se/ libcurl]. Optional, for cloud support.
* [https://curl.haxx.se/ libcurl]. Optional, for cloud support.
** You need the latest libcurl source code ([https://curl.haxx.se/download/curl-7.71.1.tar.xz v7.71.1] at the time of writing).
** You need the latest libcurl source code ([https://curl.haxx.se/download/curl-7.74.0.tar.xz 7.74.0] at the time of writing).


* [http://glew.sourceforge.net GLEW]. Optional, for hardware acceleration in 3D games.
* [http://glew.sourceforge.net GLEW]. Optional, for hardware acceleration in 3D games.
Line 172: Line 172:
=== libmad ===
=== libmad ===


Unzip the libmad archive in a folder, open MSYS, go to the libmad folder If you are using gcc 4.4 or higher, run the following command:
Unzip the libmad archive in a folder, open MSYS and go to the libmad folder. If you are using gcc 4.4 or higher, run the following command:
  sed -i '/-fforce-mem/d' configure
  sed -i '/-fforce-mem/d' configure


Line 305: Line 305:
Unzip the libjpeg-turbo archive in a folder, open MSYS, go to the libjpeg-turbo folder and issue these commands to compile and install the library:
Unzip the libjpeg-turbo archive in a folder, open MSYS, go to the libjpeg-turbo folder and issue these commands to compile and install the library:


  cmake -G "MSYS Makefiles" -DENABLE_SHARED=OFF -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_BUILD_TYPE=Release .
  cmake -G "MSYS Makefiles" -DENABLE_SHARED=OFF -DCMAKE_INSTALL_PREFIX=/mingw -DCMAKE_BUILD_TYPE=Release .
  make
  make
  make install
  make install
213

edits