-
Notifications
You must be signed in to change notification settings - Fork 8
Building
Joachim de Groot edited this page Jul 13, 2025
·
22 revisions
NLarn is known to build on Linux, *BSD, macOS, and Windows.
This list is mainly meant as an overview. The operating system specific build instructions explain how to get these.
- A decent C compiler. Development mainly happens with GCC, clang is also known to work.
- GNU make
- A curses library that includes the panels library (Ncurses and PDCurses are known to work)
- GLib
- Pandoc
- pkg-config
- zlib
sudo dnf install pandoc make gcc git ncurses-devel glib2-devel zlib-ng-devel
# When building with SDLPDCURSES=Y
sudo dnf install SDL2-devel SDL2_ttf-devel
sudo apt install pandoc gcc git libncurses-dev libglib2.0-dev make zlib1g-dev
# When building with SDLPDCURSES=Y
sudo apt install libsdl2-dev libsdl2-ttf-dev
Install required packages (this list applies to a default FreeBSD 11.2 installation):
pkg install hs-pandoc glib git gmake pkgconf
Install Homebrew. Installation instructions can be found on the Homebrew page. When homebrew is installed, you can install the required packages:
brew install pandoc dylibbundler glib ncurses pkg-config sdl2 sdl2_ttf
pkg_add pandoc glib2 git gmake
Build the game with make (or gmake on the BSDs).
make help
explains the available options.