Installing from sources on Linux
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++, SDL2, SDL2_ttf, SDL2_image, boost, libvorbis, libvorbisfile, libogg, OpenAL, zlib, libopengl, libglu, swig2, 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 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 swig cmake cmake-dataFor gentoo:
root@computer:~# emerge --ask --verbose --noreplace libvorbis libogg media-libs/openal boost libsdl2 sdl2-image sdl2-ttf scons git pyyaml dev-lang/swigFor Fedora (17):
root@computer:~# yum install git scons python python-devel gcc gcc-c++ SDL2 SDL2-devel SDL2_ttf SDL2_ttf-devel SDL2_image SDL2_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
Run all of the following commands. No worries, we also explain what they do ;-)
Check out FIFECHAN source
user@computer:~$ git clone https://github.com/fifengine/fifechan.git 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://github.com/fifengine/fifengine.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://github.com/unknown-horizons/unknown-horizons.git && cd unknown-horizons && ./setup.py build_i18n && ./run_uh.py
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 http://github.com/unknown-horizons
Note: ./setup.py build_i18n has to be executed every time a .po file was updated.