equal
deleted
inserted
replaced
1 #summary Instructions for building Hedgewars on Linux (debian focus) |
1 #summary Instructions for building the development version of Hedgewars on Linux (debian focus) |
2 #labels Phase-Implementation,Phase-Deploy,Phase-Support |
2 #labels Phase-Implementation,Phase-Deploy,Phase-Support |
3 |
3 |
4 = Introduction = |
4 = Introduction = |
5 |
5 |
6 Copy and Paste instructions for a Hedgewars build. Should work on Debian and the like (Ubuntu, Mint). Packages for other distros should have similar names. Remember to copy the *entire* apt-get lines! |
6 Copy and Paste instructions for a Hedgewars development build. Should work on Debian and the like (Ubuntu, Mint). Packages for other distros should have similar names. Remember to copy the *entire* apt-get lines! |
7 |
7 |
8 = Prerequisites = |
8 = Prerequisites = |
9 |
9 |
10 {{{ |
10 {{{ |
11 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 |
11 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 |
24 }}} |
24 }}} |
25 |
25 |
26 = Building process = |
26 = Building process = |
27 |
27 |
28 {{{ |
28 {{{ |
29 mkdir ~/games |
29 mkdir -p ~/games ~/hg/hedgewars/build |
30 mkdir -p ~/hg/hedgewars |
|
31 cd ~/hg/hedgewars |
30 cd ~/hg/hedgewars |
32 hg clone https://hedgewars.googlecode.com/hg/ trunk |
31 hg clone https://hedgewars.googlecode.com/hg/ trunk |
33 }}} |
32 }}} |
34 |
33 |
35 The initial clone of the repository will take a while, is about 550MiB or so... |
34 The initial clone of the repository will take a while, is about 600MiB or so... |
36 |
35 |
37 {{{ |
36 {{{ |
38 cd ~/hg/hedgewars/trunk |
37 cd ~/hg/hedgewars/build |
39 cmake -DCMAKE_BUILD_TYPE="DEBUG" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DNOSERVER=1 |
38 cmake ../trunk -DCMAKE_BUILD_TYPE="DEBUG" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DNOSERVER=1 |
40 make install |
39 make install |
41 }}} |
40 }}} |
42 if you want to build the server as well, change -DNOSERVER=1 to -DNOSERVER=0 |
41 if you want to build the server as well, change -DNOSERVER=1 to -DNOSERVER=0 |
43 |
42 |
44 then wait for the build to complete, then run ... |
43 then wait for the build to complete, then run ... |
50 You can also create a launcher for it on your desktop or on applications menu if you wish, using the ~/games/bin/hedgewars path |
49 You can also create a launcher for it on your desktop or on applications menu if you wish, using the ~/games/bin/hedgewars path |
51 |
50 |
52 == Build Updates === |
51 == Build Updates === |
53 |
52 |
54 {{{ |
53 {{{ |
55 cd ~/hg/hedgewars/trunk |
54 cd ~/hg/hedgewars/build |
56 hg pull -u |
55 hg -R ../trunk pull -u |
57 cmake -DCMAKE_CXX_FLAGS="-g" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DWITH_SERVER=0 |
56 cmake ../trunk -DCMAKE_BUILD_TYPE="DEBUG" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DNOSERVER=1 |
58 make install |
57 make install |
59 }}} |
58 }}} |