Installing from sources on Linux

Any problem? Visit our Support Page

For all of you that want to give the newest developer snapshot with all bugs inclusive ;) a try.

Resolve build dependencies

You need the following packages and their development counterparts. We recommend to install them via your package manager.

For FIFE: git, scons, gcc or g++, SDL, SDL_ttf, SDL_image, boost, libvorbis, libvorbisfile, libogg, OpenAL, zlib, libopengl, libglu, swig, cmake

For UH: git, python2, python-yaml/pyyaml

For debian like distros and there is also aptURL available.

root@computer:~# apt-get install -y build-essential scons libalsa-ocaml-dev libsdl1.2-dev libboost-dev libsdl-ttf2.0-dev  libsdl-image1.2-dev libvorbis-dev libalut-dev python2.7 python-dev libboost-regex-dev libboost-filesystem-dev libboost-test-dev swig zlib1g-dev libopenal-dev git python-yaml libxcursor1 libxcursor-dev swig cmake cmake-data
For gentoo: 
root@computer:~# emerge --ask --verbose --noreplace libvorbis libogg media-libs/openal boost libsdl sdl-image sdl-ttf scons git pyyaml dev-lang/swig
For Fedora (17):
root@computer:~# yum install git scons python python-devel gcc gcc-c++ SDL SDL-devel SDL_ttf SDL_ttf-devel SDL_image SDL_image-devel boost libvorbis libvorbis-devel libogg libogg-devel openal-soft openal-soft-devel zlib zlib-devel mesa-libGL mesa-libGL-devel mesa-libGLU mesa-libGLU-devel swig libXcursor libXcursor-devel alsa-lib alsa-lib-devel python-alsa PyYAML allegro5 cmake


BEFORE attempting to compile and run Unknown Horizons, REMOVE any FIFE and Unknown Horizons packages installed using your package manager (usually named unknown-horizons and python-fife or fife).


Run all of the following commands. No worries, we also explain what they do ;-)

Check out FIFECHAN source

user@computer:~$ git clone
user@computer:~$ cd fifechan

Compile FIFECHAN with cmake

user@computer:~$ cmake .
user@computer:~$ make
root@computer:~$ make install && cd ..

Check out FIFE source

git clone --depth 1 git:// && cd fifengine

Compile FIFE with scons

user@computer:~/fifengine$ scons && cd ..

Check out UH code, run setup and start game

git clone --depth 1 git:// && cd unknown-horizons && ./ build_i18n && ./

Complete FIFE build instructions for scons can be found here
You can also clone other repositories of Unknown Horizons (e.g. source files for graphics or music). Take a look at
Note:  ./ build_i18n has to be executed every time a .po file was updated. 

Previous page: Downloads
Next page: Unknown Horizons related media