271
edits
Ccawley2011 (talk | contribs) |
Ccawley2011 (talk | contribs) |
||
Line 16: | Line 16: | ||
=== Libraries needed === | === Libraries needed === | ||
* [ | * [https://www.libsdl.org/download-2.0.php SDL2]. | ||
** You need the latest SDL2 development libraries: ([https://www.libsdl.org/release/SDL2-devel-2.0.14-mingw.tar.gz v2.0.14] at the time of writing). | |||
* [https://github.com/libsdl-org/SDL-1.2 SDL 1.2]. For Windows 95/98/ME support | |||
** You need the latest SDL 1.2 source code revision from GitHub ([https://github.com/libsdl-org/SDL-1.2/tree/99d7f1d1c5492f0fb3c799255042ca7a3f4a5de4 99d7f1d1c5492f0fb3c799255042ca7a3f4a5de4] at the time of writing). | ** You need the latest SDL 1.2 source code revision from GitHub ([https://github.com/libsdl-org/SDL-1.2/tree/99d7f1d1c5492f0fb3c799255042ca7a3f4a5de4 99d7f1d1c5492f0fb3c799255042ca7a3f4a5de4] 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/ SDL2_net]. Optional, for network support. | ||
** You need the latest SDL2_net source code ([https://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.0.1.tar.gz v2.0.1] at the time of writing). | |||
* [https://www.libsdl.org/projects/SDL_net/release-1.2.html SDL_net 1.2]. Optional, for network support on Windows 95/98/ME. | |||
** You need the latest SDL_net source code ([https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz v1.2.8] at the time of writing). | ** You need the latest SDL_net source code ([https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz v1.2.8] at the time of writing). | ||
Line 80: | Line 86: | ||
** [http://downloads.scummvm.org/frs/build/scummvm-required-libs-mingw.zip Precompiled libraries] | ** [http://downloads.scummvm.org/frs/build/scummvm-required-libs-mingw.zip Precompiled libraries] | ||
* Extract them to your MinGW directory (e.g. C:\MinGW) | * Extract them to your MinGW directory (e.g. C:\MinGW) | ||
== MSYS primer == | == MSYS primer == | ||
Line 134: | Line 133: | ||
=== | === SDL1 === | ||
Unzip the SDL archive in a folder, open MSYS, go to the SDL folder and issue these commands to compile and install the library: | Unzip the SDL archive in a folder, open MSYS, go to the SDL folder and issue these commands to compile and install the library: | ||
Line 142: | Line 141: | ||
make install | make install | ||
Note the README [http://www.libsdl.org/extras/win32/mingw32/README.txt here], especially the need to include the DirectX development headers from [http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz here] to ensure that the "dsound" rather than the "waveout" / "winmm" fallback audio driver is used. | |||
=== SDL2 === | |||
Note that a prebuilt version of SDL2 is required since MinGW32 doesn't have all the necessary Windows SDK headers. | |||
Unzip the SDL2 archive in a folder, open MSYS, go to the SDL2 folder and issue this command to install the library: | |||
make install-package arch=i686-w64-mingw32 prefix=$PREFIX | |||
Line 169: | Line 175: | ||
=== libmad === | === libmad === | ||
Unzip the libmad archive in a folder, open MSYS and go to the libmad folder | Unzip the libmad archive in a folder, open MSYS and go to the libmad folder and issue these commands to compile and install the library: | ||
sed -i '/-fforce-mem/d' configure | sed -i '/-fforce-mem/d' configure | ||
./configure --disable-shared --prefix=/mingw | ./configure --disable-shared --prefix=/mingw | ||
make | make | ||
Line 333: | Line 337: | ||
+Libs: -L${libdir} -lSDL_net @INETLIB@ | +Libs: -L${libdir} -lSDL_net @INETLIB@ | ||
Cflags: -I${includedir}/SDL | Cflags: -I${includedir}/SDL | ||
</syntaxhighlight> | |||
Then issue these commands to compile and install the library: | |||
./configure --disable-shared --prefix=/mingw | |||
make | |||
make install | |||
=== SDL2_net === | |||
Unzip the SDL2_net archive in a folder, open MSYS, go to the SDL2_net folder and apply the following patch: | |||
<syntaxhighlight lang="diff"> | |||
--- SDL2_net.pc.in.orig 2016-01-03 07:57:09 +0000 | |||
+++ SDL2_net.pc.in 2020-08-30 17:45:28 +0100 | |||
@@ -7,5 +7,5 @@ | |||
Description: net library for Simple DirectMedia Layer | |||
Version: @VERSION@ | |||
Requires: sdl2 >= @SDL_VERSION@ | |||
-Libs: -L${libdir} -lSDL2_net | |||
+Libs: -L${libdir} -lSDL2_net @INETLIB@ | |||
Cflags: -I${includedir}/SDL2 | |||
EOF | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 346: | Line 374: | ||
Unzip the curl archive in a folder, open MSYS, go to the curl folder and issue these commands to compile and install the library: | Unzip the curl archive in a folder, open MSYS, go to the curl folder and issue these commands to compile and install the library: | ||
./configure --disable-shared --prefix=/mingw --with-winssl --disable-pthreads --disable-ldap | CPPFLAGS=-D_WIN32_WINNT=0x400 ./configure --disable-shared --prefix=/mingw --with-winssl --disable-pthreads --disable-ldap | ||
make | make | ||
make install | make install |
edits