Edited wiki page GettingEmscriptenToWork through web user interface.
#summary Instructions for building Hedgewars on Linux (debian focus)
#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
}}}
note, if you want to try building the server as well (requires at least libghc base 4.3 right now) try these too:
{{{
sudo apt-get install ghc libghc-binary-dev libghc-bytestring-show-dev libghc-dataenc-dev libghc-deepseq-dev libghc-hslogger-dev libghc-mtl-dev libghc-network-dev libghc-parsec3-dev libghc-utf8-string-dev
}}}
= 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 550MiB 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
}}}
if you want to build the server as well, change -DWITH_SERVER=0 to -DWITH_SERVER=1
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
}}}