equal
deleted
inserted
replaced
|
1 #summary Instructions for building Hedgewars on Linux |
|
2 #labels Phase-Implementation,Phase-Deploy,Phase-Support |
|
3 |
|
4 = Introduction = |
|
5 |
|
6 Please see the original post here: http://www.hedgewars.org/node/2215#comment-15049 |
|
7 |
|
8 |
|
9 = Prerequisites = |
|
10 |
|
11 {{{ |
|
12 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 |
|
13 }}} |
|
14 |
|
15 = Building process = |
|
16 |
|
17 {{{ |
|
18 mkdir ~/games |
|
19 mkdir -p ~/hg/hedgewars |
|
20 cd ~/hg/hedgewars |
|
21 hg clone https://hedgewars.googlecode.com/hg/ trunk |
|
22 }}} |
|
23 |
|
24 The initial clone of the repository will take a while, is about 520MiB or so... |
|
25 |
|
26 {{{ |
|
27 cd ~/hg/hedgewars/trunk |
|
28 cmake -DCMAKE_BUILD_TYPE="DEBUG" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DWITH_SERVER=0 |
|
29 make install |
|
30 }}} |
|
31 |
|
32 then wait for the build to complete, then run ... |
|
33 |
|
34 {{{ |
|
35 ~/games/bin/hedgewars |
|
36 }}} |
|
37 |
|
38 You can also create a launcher for it on your desktop or on applications menu if you wish, using the ~/games/bin/hedgewars path |
|
39 |
|
40 == Build Updates === |
|
41 |
|
42 {{{ |
|
43 cd ~/hg/hedgewars/trunk |
|
44 hg pull -u |
|
45 cmake -DCMAKE_CXX_FLAGS="-g" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DWITH_SERVER=0 |
|
46 make install |
|
47 }}} |