Page 1 of 1

Compiling Crawl on Ubuntu 16.04

PostPosted: Thursday, 6th July 2017, 01:43
by Rast
I had this Ubuntu VM sitting around so I decided to compile crawl on it. Was pretty straightforward, mostly from INSTALL.txt.

First I did this on command line:
  Code:
sudo apt install git
git clone https://github.com/crawl/crawl.git
cd crawl
git submodule update --init
cd crawl-ref/source/
make

After ten minutes of compiling, I got this error: libunix.cc:30:18: fatal error: term.h: No such file or directory

So I googled that error and tried this:
  Code:
sudo apt install libncurses5-dev
make

After another ten minutes of compiling, I got more errors starting out like: libunix.cc:498:23: error: ‘get_wch’ was not declared in this scope

Did some more googling and tried:
  Code:
sudo apt install libncursesw5-dev
make

Fifteen minutes later, compiling finished! I started crawl with:
  Code:
./crawl

Re: Compiling Crawl on Ubuntu 16.04

PostPosted: Thursday, 6th July 2017, 02:04
by chequers
The INSTALL.txt layout is confusing, but the packages needed are actually documented in the "Building on Unix (Linux, *BSD, Solaris, etc.)" section:
Prerequisites (Debian):

On Debian-based systems (Ubuntu, Mint, ...), you can get all dependencies by
typing the following as root/sudo:
apt-get install build-essential libncursesw5-dev bison flex liblua5.1-0-dev \
libsqlite3-dev libz-dev pkg-config libsdl2-image-dev libsdl2-mixer-dev \
libsdl2-dev libfreetype6-dev libpng-dev ttf-dejavu-core
(the last five are needed only for tiles builds). This is the complete set,
with it you don't have a need for the bundled "contribs".