Skip to content

Building

Joachim de Groot edited this page Jul 13, 2025 · 22 revisions

Building nlarn

NLarn is known to build on Linux, *BSD, macOS, and Windows.

Dependencies

This list is mainly meant as an overview. The operating system specific build instructions explain how to get these.

Operating System specific build instructions

Linux

RedHat Family OS (e.g. Fedora):

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

Debian Family OS (e.g. Ubuntu):

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

FreeBSD

Install required packages (this list applies to a default FreeBSD 11.2 installation):

pkg install hs-pandoc glib git gmake pkgconf

macOS

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

OpenBSD

pkg_add pandoc glib2 git gmake

Building

Build the game with make (or gmake on the BSDs).

make help

explains the available options.

Clone this wiki locally