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, gcc or g++, SDL2, SDL2_ttf, SDL2_image, boost, libvorbis, libvorbisfile, libogg, OpenAL, zlib, libopengl, libglu, swig2, cmake, tinyxml

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 libalsa-ocaml-dev libsdl2-dev libboost-dev libsdl2-ttf-dev libsdl2-image-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 cmake cmake-data libtinyxml-dev
For gentoo:
root@computer:~# emerge --ask --verbose --noreplace libvorbis libogg media-libs/openal boost libsdl2 sdl2-image sdl2-ttf git pyyaml dev-lang/swig dev-libs/tinyxml dev-util/cmake
For Fedora:
root@computer:~# dnf install git python python-devel gcc gcc-c++ SDL2 SDL2-static SDL2-devel SDL2_ttf SDL2_ttf-devel SDL2_image SDL2_image-devel boost boost-devel 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 tinyxml-devel libpng libpng-devel
For Arch Linux:
root@computer:~# pacman -S sdl2 boost sdl2_ttf sdl2_image libvorbis libogg openal swig python2 zlib libgl libpng tinyxml python2-pillow 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$ mkdir _build; cd _build; cmake..

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