author | sheepyluva@gmail.com |
Sun, 02 Sep 2012 17:43:14 +0000 | |
changeset 249 | f47761d3bbe5 |
parent 248 | 96d8ee67f2bc |
child 250 | 9c711f1b4638 |
permissions | -rw-r--r-- |
249
f47761d3bbe5
Edited wiki page BuildingOnLinux through web user interface. Sobbing a bit
sheepyluva@gmail.com
parents:
248
diff
changeset
|
1 |
#summary Instructions for building the development version of Hedgewars on Linux (debian focus) |
129
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
2 |
#labels Phase-Implementation,Phase-Deploy,Phase-Support |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
3 |
|
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
4 |
= Introduction = |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
5 |
|
249
f47761d3bbe5
Edited wiki page BuildingOnLinux through web user interface. Sobbing a bit
sheepyluva@gmail.com
parents:
248
diff
changeset
|
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! |
129
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
7 |
|
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
8 |
= Prerequisites = |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
9 |
|
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
10 |
{{{ |
131
b21fdbe0d380
Edited wiki page BuildingOnLinux through web user interface.
kyberneticist
parents:
130
diff
changeset
|
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 |
129
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
12 |
}}} |
247 | 13 |
If you want PNG screenshots, add: |
14 |
{{{ |
|
15 |
sudo apt-get install libpng12-dev |
|
16 |
}}} |
|
17 |
If you want video recording, add: |
|
18 |
{{{ |
|
248
96d8ee67f2bc
Edited wiki page BuildingOnLinux through web user interface.
kyberneticist@gmail.com
parents:
247
diff
changeset
|
19 |
sudo apt-get install libavcodec-dev libavformat-dev freeglut3 |
247 | 20 |
}}} |
21 |
If you want to try building the server as well (requires at least libghc base 4.3 now) try these too: |
|
154 | 22 |
{{{ |
156 | 23 |
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 |
154 | 24 |
}}} |
129
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
25 |
|
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
26 |
= Building process = |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
27 |
|
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
28 |
{{{ |
249
f47761d3bbe5
Edited wiki page BuildingOnLinux through web user interface. Sobbing a bit
sheepyluva@gmail.com
parents:
248
diff
changeset
|
29 |
mkdir -p ~/games ~/hg/hedgewars/build |
129
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
30 |
cd ~/hg/hedgewars |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
31 |
hg clone https://hedgewars.googlecode.com/hg/ trunk |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
32 |
}}} |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
33 |
|
249
f47761d3bbe5
Edited wiki page BuildingOnLinux through web user interface. Sobbing a bit
sheepyluva@gmail.com
parents:
248
diff
changeset
|
34 |
The initial clone of the repository will take a while, is about 600MiB or so... |
129
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
35 |
|
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
36 |
{{{ |
249
f47761d3bbe5
Edited wiki page BuildingOnLinux through web user interface. Sobbing a bit
sheepyluva@gmail.com
parents:
248
diff
changeset
|
37 |
cd ~/hg/hedgewars/build |
f47761d3bbe5
Edited wiki page BuildingOnLinux through web user interface. Sobbing a bit
sheepyluva@gmail.com
parents:
248
diff
changeset
|
38 |
cmake ../trunk -DCMAKE_BUILD_TYPE="DEBUG" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DNOSERVER=1 |
129
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
39 |
make install |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
40 |
}}} |
241
db33e09cb9cd
Edited wiki page BuildingOnLinux through web user interface.
kyberneticist@gmail.com
parents:
169
diff
changeset
|
41 |
if you want to build the server as well, change -DNOSERVER=1 to -DNOSERVER=0 |
129
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
42 |
|
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
43 |
then wait for the build to complete, then run ... |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
44 |
|
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
45 |
{{{ |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
46 |
~/games/bin/hedgewars |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
47 |
}}} |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
48 |
|
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
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 |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
50 |
|
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
51 |
== Build Updates === |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
52 |
|
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
53 |
{{{ |
249
f47761d3bbe5
Edited wiki page BuildingOnLinux through web user interface. Sobbing a bit
sheepyluva@gmail.com
parents:
248
diff
changeset
|
54 |
cd ~/hg/hedgewars/build |
f47761d3bbe5
Edited wiki page BuildingOnLinux through web user interface. Sobbing a bit
sheepyluva@gmail.com
parents:
248
diff
changeset
|
55 |
hg -R ../trunk pull -u |
f47761d3bbe5
Edited wiki page BuildingOnLinux through web user interface. Sobbing a bit
sheepyluva@gmail.com
parents:
248
diff
changeset
|
56 |
cmake ../trunk -DCMAKE_BUILD_TYPE="DEBUG" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DNOSERVER=1 |
129
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
57 |
make install |
751dee35e4f1
Created wiki page with build instruction for ubuntu
vittorio.giovara@gmail.com
parents:
diff
changeset
|
58 |
}}} |