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.

git, subversion, scons, python2.6, gcc or g++, SDL, SDL_ttf, SDL_image, boost, libvorbis, libvorbisfile, libogg, OpenAL, zlib, libopengl, libglu, python-yaml or pyyaml, swig

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.6 python-dev libboost-regex-dev libboost-filesystem-dev libboost-test-dev swig zlib1g-dev libopenal-dev git subversion python-yaml libxcursor1 libxcursor-dev swig
For gentoo: 
root@computer:~# emerge --ask --verbose --noreplace libvorbis libogg media-libs/openal guichan boost libsdl sdl-image sdl-ttf scons git subversion pyyaml dev-lang/swig

Installation

Run all of the following commands. No worries, we also explain what they do ;-)
user@computer:~$  mkdir FIFE

Check out FIFE source

user@computer:~$
cd FIFE && svn co http://fife.svn.cvsdude.com/engine/trunk && cd trunk

Compile FIFE with scons

user@computer:~/FIFE/trunk$
scons ext && scons fife-python && cd ../../

Check out UH code, run setup and start game

user@computer:~$
git clone git://github.com/unknown-horizons/unknown-horizons.git && cd unknown-horizons && ./setup.py build_i18n && python2.6 run_uh.py

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

No git/svn available?

We can also provide this. Note, however, that you won't be able to do easy updates of UH and may need to download large packages of source code again and again. If you are unexperienced, just visit us on IRC and we will help ;-)

If you still want to choose the way that might look easier: Ignore the sections on this page that start with "Check out" and instead do the following. You will not need any version control software like svn or git.

Download the current FIFE trunk as *.zip file (available here) and download the current UH code (either as *.zip or as *.tar file).

Unzip FIFE to ~/FIFE and continue until you are told to check out UH. Instead, uncompress the UH code in a way that you can afterwards find the file ~/unknown-horizons/run_uh.py . Continue with the installation (includes compiling with scons!).

Previous page: Downloads
Next page: Unknown Horizons related media