BuildingOnLinux.wiki
author kyberneticist
Sun, 04 Sep 2011 17:26:04 +0000
changeset 131 b21fdbe0d380
parent 130 e0d4a24f2e52
child 154 030bb9b4470b
permissions -rw-r--r--
Edited wiki page BuildingOnLinux through web user interface.

#summary Instructions for building Hedgewars on Linux
#labels Phase-Implementation,Phase-Deploy,Phase-Support

= Introduction =

Please see the original post here: http://www.hedgewars.org/node/2215#comment-15049


= Prerequisites =

{{{
sudo apt-get install mercurial cmake qt4-qmake libqt4-dev libsdl1.2-dev libsdl-net1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev liblua5.1-dev fpc
}}}

= Building process =

{{{
mkdir ~/games
mkdir -p ~/hg/hedgewars
cd ~/hg/hedgewars
hg clone https://hedgewars.googlecode.com/hg/ trunk
}}}

The initial clone of the repository will take a while, is about 506MiB or so...

{{{
cd ~/hg/hedgewars/trunk
cmake -DCMAKE_BUILD_TYPE="DEBUG" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DWITH_SERVER=0
make install
}}}

then wait for the build to complete, then run ...

{{{
~/games/bin/hedgewars
}}}

You can also create a launcher for it on your desktop or on applications menu if you wish, using the ~/games/bin/hedgewars path

== Build Updates ===

{{{
cd ~/hg/hedgewars/trunk
hg pull -u
cmake -DCMAKE_CXX_FLAGS="-g" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DWITH_SERVER=0
make install
}}}