diff --git a/map-generator/README.md b/map-generator/README.md index 33222b032b..7537ba35b9 100644 --- a/map-generator/README.md +++ b/map-generator/README.md @@ -11,9 +11,13 @@ the [Official Openfront Wiki](https://openfront.wiki/Map_Making) ## Installation 1. Install go -2. Go to map-generator folder: `cd map-generator` -3. Install dependencies: `go mod download` -4. Run the generator for all maps: `go run .` +2. Install a C compiler (required by the WebP dependency via CGO): + - **Windows:** Install [MSYS2](https://www.msys2.org/), open the **UCRT64** terminal, and run `pacman -S mingw-w64-ucrt-x86_64-gcc`. Either use Go from within that terminal or add the UCRT64 `bin` directory (e.g. `C:\msys64\ucrt64\bin`) to your PATH so `gcc` is available. Alternatively, install [TDM-GCC](https://jmeubank.github.io/tdm-gcc/). + - **macOS:** `xcode-select --install` + - **Linux:** `sudo apt install gcc` (Debian/Ubuntu) or equivalent. +3. Go to map-generator folder: `cd map-generator` +4. Install dependencies: `go mod download` +5. Run the generator for all maps: `go run .` ## Creating a new map