The Official NPPAngband And NPPMoria Forum

You are not logged in.


July 4th, 2018 - Registrations have been turned off due to the large ratio of spam vs legitimate discussion.

#1 2012-02-17 15:37:02

NPPAngband Maintainer
Registered: 2004-07-01
Posts: 1,647

Compiling on Linux (NPP 0.5.4 and later versions)

NPPAngband comes with 4 ports that work under Linux: GTK, SDL X-11, and GCU.  Currently, GTK and X11 do not quite work properly due to problems loading the default font.  This problem will be eliminated in the early stages of NPP 060 development.  While the instructions will be different for every version of Linux, the source code can be compiled cleanly and the GCU and SDL ports executed (this is confirmed to work in Ubuntu and SUSE) with the following steps:

These instructions are based on this page for compiling and running a local install of NPPAngband:

1) Get the dependencies & source:

open a terminal and run the following command:

sudo apt-get install autoconf gcc libc6-dev libncurses5-dev libx11-dev ibsdl1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libgtk2.0-dev libglade2-dev

Download source code ( and extract into a directory of your choice:

2) Open a terminal and navigate to the *NPP directory.

3) enter the command:   "./"

4) enter the command:   "./configure --with-no-install --enable-sdl"  (There are various commands that can be used here to compile the game in different ways.  See for various options.  This one enables the sdl port to compile in a local directory.  GCU also works with this command)

5) enter the command:   "make"

6) enter the command:    "make install"

NPP is now compiled and ready to play.

To run the GCU port, enter:  "./src/nppangband -mgcu"
To run the sdl port, enter:  "./src/nppangband -msdl"

The other two ports should be fixed in the next couple months.

Thanks to Nick McConnell (FAAngband maintainer ) and many Linux users over at angband.oook for helping me figure this out & get NPP working under Linux again.


#2 2013-02-16 10:35:32

NPPAngband Maintainer
Registered: 2004-07-01
Posts: 1,647

Re: Compiling on Linux (NPP 0.5.4 and later versions)

Update:  This process still works for NPP 0.6.1.  However the gtk and x11 ports have been removed.


Board footer

Powered by FluxBB