BuildingOnLinux.wiki
changeset 129 751dee35e4f1
child 130 e0d4a24f2e52
--- /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