forked from joncampbell123/dosbox-x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.MinGW
27 lines (24 loc) · 882 Bytes
/
README.MinGW
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#
# MinGW DOSBox-X Build Notes
#
# * MinGW redistributable files must be in the PATH while compiling and while
# running a MinGW DOSBox-X. (SDL.dll, libpng.dll, zlib1.dll, etc.)
#
# * The MinGW PNG package does not currently bundle the libpng.dll.a static
# library, which means that a MinGW DOSBox-X cannot be statically compiled using
# distro packages.
#
# Use this environment for building a 64-bit MinGW DOSBox-X on Cygwin:
TRIPLET=x86_64-w64-mingw32
export PATH="/usr/$TRIPLET/sys-root/mingw/bin:$PATH"
export CC="$TRIPLET-gcc"
export CXX="$TRIPLET-g++"
# autoreconf && ./configure && make
# Alternatively install MSYS2 on Windows,
# Open the MSYS2 MinGW 64-bit prompt,
# then run:
pacman -Syu # Keep up to date!
pacman -S base-devel gcc mingw-w64-x86_64-toolchain mingw-w64-x86_64-SDL2 mingw-w64-x86_64-libpng --needed
cd /path/to/dosbox-code
./build-mingw-sdl2