You need these things at minimum to compile the game:
- a C compiler (Clang or GCC)
- Make
- diffutils (cmp)
You will also need additional dependencies based on the build options you select.
You can see the options and their requirements in config.mk
. You can configure
the build by editing config.mk
or appending options to the Make command,
e.g. make TERMINAL=YES
.
More specific instructions follow on how to acquire the dependencies and build the game.
There are many ways to compile software on Windows. The method here was tested by the author and is relatively simple.
-
Install MSYS2 for x86_64. Refer to the website for essential info on how to use it.
-
(Installing the dependencies) Open the MSYS2 shell and run the following:
pacman -S make diffutils mingw-w64-x86_64-{gcc,SDL2,SDL2_image}
-
(Compiling the game) Open the Mingw64 shell. Navigate to the Brogue CE directory (the one containing this file; your Windows drives can be accessed at
/c
,/d
etc.) and runmake bin/brogue.exe
-
Optional: You can now run the game by running
cd bin; ./brogue.exe
. However if you want to be able to run it from outside the Mingw64 shell, you'll need to add the/mingw64/bin
directory of MSYS2 to your system PATH. By default this is atC:\msys2\mingw64\bin
. Some info is here: How do I set or change the PATH system variable? You only need to perform this step once.
These instructions are intended for developers and testers, as this will
not create an App. You will have to run the game with the ./brogue
script,
just like for the Linux version.
-
Install the Homebrew package manager.
-
Install the dependencies:
brew install sdl2 sdl2_image
-
Navigate to the Brogue CE directory (the one containing this file) and run:
make bin/brogue
The above steps will suffice for single-user testing, but to create an app bundle instead of a loose binary:
- (
make clean
if necessary) make GRAPHICS=YES MAC_APP=YES Brogue.app
- Rename to "Brogue CE.app"
To distribute this app you will have to bundle the dylib libraries, e.g. with dylibbundler. See our GitHub Actions workflow for more details.
These instructions are for the graphical version only.
-
Install the dependencies; for example, on Debian/Ubuntu, run
sudo apt install make gcc diffutils libsdl2-2.0-0 libsdl2-dev libsdl2-image-2.0-0 libsdl2-image-dev
-
Navigate to where this file is and run
make bin/brogue