forked from Ports/perfect_dark
Improve windows build instructions
This commit is contained in:
1 parent
28837dd034
commit
94221e2c62
1 file changed
+9
-3
@@ -55,11 +55,17 @@ N64 pad buttons X and Y (or `X_BUTTON`, `Y_BUTTON` in the code) refer to the res
|
|||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
1. Install MSYS2.
|
1. Install [MSYS2[(https://www.msys2.org).
|
||||||
2. Open the MINGW32 prompt.
|
2. Open the MINGW32 prompt.
|
||||||
3. Install dependencies: `pacman -S mingw-w64-i686-toolchain mingw-w64-i686-SDL2 mingw-w64-i686-zlib make git`
|
3. Install dependencies: `pacman -S mingw-w64-i686-toolchain mingw-w64-i686-SDL2 mingw-w64-i686-zlib make git`
|
||||||
4. Run `make -f Makefile.port` in the `perfect_dark` directory.
|
4. clone the project: `git clone https://github.com/fgsfdsfgs/perfect_dark`
|
||||||
5. The resulting executable will be at `build/ntsc-final-port/pd.exe`.
|
5. cd into the project: `cd perfect_dark`
|
||||||
|
6. Set HOST_PLATFORM to i686-windows in Makefile.port: `sed -i "s/^HOST_PLATFORM ?=.*$/HOST_PLATFORM ?= i686-windows/" Makefile.port`
|
||||||
|
7. Set a few environment variables (you can also add these to your `~/.bashrc` if you want them to stick around)
|
||||||
|
- `export PKG_CONFIG_PATH=/mingw32/lib/pkgconfig:$PKG_CONFIG_PATH`
|
||||||
|
- `export PATH=/mingw32/bin/:$PATH`
|
||||||
|
7. Run `make -f Makefile.port` in the `perfect_dark` directory.
|
||||||
|
8. The resulting executable will be at `build/ntsc-final-port/pd.exe`.
|
||||||
|
|
||||||
### Linux
|
### Linux
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user