Linux

yhoyhoj edited this page Jun 27, 2018 · 21 revisions
Clone this wiki locally

Distribution packages

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 ..
    
  • 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 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