Skip to content

Commit

Permalink
Fix and update MSYS2 compiling document
Browse files Browse the repository at this point in the history
  • Loading branch information
alef committed Jan 20, 2024
1 parent 92b1caa commit 2527017
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions doc/COMPILING/COMPILING-MSYS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ These instructions were written using 64-bit Windows 7 and the 64-bit version of

3. After installation, run MSYS2 64bit now.

When working from Microsoft Terminal default MSYS2 profile, run:
```
MSYSTEM=MINGW64 bash -l
```

## Configuration:

1. Update the package database and core system packages:
Expand All @@ -39,7 +44,7 @@ pacman -Su
4. Install packages required for compilation:

```bash
pacman -S git make mingw-w64-x86_64-{astyle,ccache,gcc,libmad,libwebp,pkg-config,SDL2} mingw-w64-x86_64-SDL2_{image,mixer,ttf}
pacman -S git make mingw-w64-x86_64-{astyle,ccache,cmake,gcc,libmad,libwebp,pkgconf,SDL2,libzip,libavif} mingw-w64-x86_64-SDL2_{image,mixer,ttf}
```

5. Close MSYS2.
Expand All @@ -65,7 +70,7 @@ and
```
MSYS2_PATH="/usr/local/bin:/usr/bin:/bin:/mingw64/bin"
MANPATH='/usr/local/man:/usr/share/man:/usr/man:/share/man:/mingw64/share/man'
INFOPATH='/usr/local/info:/usr/share/info:/usr/info:/share/info:/mingw64/share/man'
INFOPATH='/usr/local/info:/usr/share/info:/usr/info:/share/info:/mingw64/share/info'
```

and
Expand Down Expand Up @@ -96,6 +101,8 @@ You will receive warnings about unterminated character constants; they do not im

**Note**: This will compile a release version with Sound and Tiles support and all localization languages, skipping checks and tests, and using ccache for build acceleration. You can use other switches, but `MSYS2=1`, `DYNAMIC_LINKING=1` and probably `RELEASE=1` are required to compile without issues.

See `COMPILING-CMAKE.md` section `CMake Build for MSYS2 (MinGW)` for using the CMake build system here.

## Running:

1. Run inside MSYS2 from Cataclysm's directory with the following command:
Expand Down

0 comments on commit 2527017

Please sign in to comment.