In this config we are going to compile and install the Wesnoth 1.12 on Ubuntu 14.04 Linux. Battle for Wesnoth is a free single-player or multiplayer turn-based strategy game.
Let’s get started by installation of all prerequisites:
# apt-get install cmake libsdl-image1.2-dev libboost1.55-all-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libpango1.0-dev libsdl-net1.2-dev wget
Once the prerequisites are installed download Wesnoth’s source code. For this we use wget:
$ wget -c http://downloads.sourceforge.net/project/wesnoth/wesnoth-1.12/wesnoth-1.12/wesnoth-1.12.tar.bz2
and extract the tarball:
$ tar xjf wesnoth-1.12.tar.bz2
At this stage we are ready for the actual compilation. Navigate to Wesnoth’s extracted directory and create a build directory called build
to be used for the actual compilation:
$ cd wesnoth-1.12 $ mkdir build $ cd build
From here execute cmake
command followed by make install
command executed as root user:
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/ ../ # make install
Depending on your hardware configuration this may take a while. Wait for the compilation to finish and then start the game with:
$ wesnoth
Enjoy…!

