# HG changeset patch # User vittorio.giovara@gmail.com # Date 1315040078 0 # Node ID 751dee35e4f1e80dcf09d57a57609525daf46084 # Parent ebffe6bbc59048628ee471ef0992f7fa1b32254b Created wiki page with build instruction for ubuntu diff -r ebffe6bbc590 -r 751dee35e4f1 BuildingOnLinux.wiki --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BuildingOnLinux.wiki Sat Sep 03 08:54:38 2011 +0000 @@ -0,0 +1,47 @@ +#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 libqtwebkit-dev 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 520MiB 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 +}}} \ No newline at end of file