Skip to content
jaggiJ edited this page Mar 19, 2019 · 27 revisions

Distribution packages

Distribution Packages Status Some distributions already have Unknown-Horizons in official or unofficial repositories. This includes:

Install from source

Unknown Horizons depends on the Fife game engine, and the Fifechan gui library. When installing unknown horizons from source you usually need to install these from source too.

Installing fife and fifechan from source

Guide for installing fife and fifechan from source could be found here:

Building Guide

Short Version:

For dependencies please look here: Dependencies

  • Fifechan:

    git clone https://github.com/fifengine/fifechan.git
    cd fifechan
    mkdir _build
    cd _build
    cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
    make
    sudo make install
    
  • Fifengine:

    git clone https://github.com/fifengine/fifengine.git
    cd fifengine
    mkdir _build 
    cd _build
    cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
    make
    sudo make install
    

    If you get problems with cegui missing, you should add the -Dcegui=OFF flag to cmake. The cmake line would then be:

    cmake -Dcegui=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
    

Installing pyenet

See Installing-PyEnet. Only necessary for multiplayer.

Installing Unknown-Horizons from source

  • First step get git version:

git clone git://github.com/unknown-horizons/unknown-horizons.git

  • Second step build the translations:

cd unknown-horizons && ./setup.py build_i18n

  • Third step create a default settings file

mkdir ~/.config/unknown-horizons/ && cp content/settings-template.xml ~/.config/unknown-horizons/settings.xml

  • Now you can run Unknown-Horizons with:

./run_uh.py

Clone this wiki locally