12 |
12 |
13 == Prerequisites == |
13 == Prerequisites == |
14 The first section contains dependency lists, the second section contain copy-and-paste instructions for Debian and derivates (Ubuntu, Linux Mint, etc.). |
14 The first section contains dependency lists, the second section contain copy-and-paste instructions for Debian and derivates (Ubuntu, Linux Mint, etc.). |
15 |
15 |
16 === Required packages === |
16 === Required packages === |
17 This section contains lists of required packages to build Hedgewars. In most Linux distributions, you should find readily available packages. |
17 For a full list see [Dependencies Dependencies] |
18 |
18 |
19 Please note that for libraries, you need to have the *entire* library installed, including the headers. Some distributions (most notably Debian and Debian derivates) provide seperate packages for the headers. |
19 In most Linux distributions, you should find readily available packages. |
20 |
20 |
21 ==== Build dependencies === |
21 Please note that for libraries, you also need their development headers. Some distributions (most notably Debian and Debian derivatives) provide separate packages for the headers. |
22 You need these packages to build Hedgewars, but not afterwards: |
|
23 |
22 |
24 || *Name* || *Version* || *Homepage* || |
23 === Resolving dependencies under Debian and Debian-based systems (e.g. Mint, Ubuntu) === |
25 || Mercurial || || [http://mercurial.selenic.com/] || |
|
26 || CMake || || [http://www.cmake.org/] || |
|
27 || QMake || || [http://www.qt.io/] || |
|
28 |
|
29 ==== Core dependencies === |
|
30 You need these softwares no matter what: |
|
31 |
|
32 || *Name* || *Version* || *Homepage* || |
|
33 || Qt || 4 || [http://www.qt.io/] || |
|
34 || SDL || 1.2 || [http://libsdl.org/] || |
|
35 || SDL_net || 1.2 || [http://libsdl.org/] || |
|
36 || SDL_mixer || 1.2 || [http://libsdl.org/] || |
|
37 || SDL_image || 1.2 || [http://libsdl.org/] || |
|
38 || SDL_TTF || 2.0 || [http://libsdl.org/] || |
|
39 || Lua || 5.1 || [http://www.lua.org/] || |
|
40 || FPC || ??? || [http://freepascal.org/] || |
|
41 || PhysFS || ??? || [https://icculus.org/physfs/] || |
|
42 |
|
43 You also need the following fonts: |
|
44 || *Name* || *Homepage* || *Comment* || |
|
45 || !DejaVu Sans Bold || [http://dejavu-fonts.org/] || — || |
|
46 || Zen Hei || [http://wenq.org/] || From the !WenQuanYi project. Font is internally known as “wgy-zenhei” || |
|
47 |
|
48 ==== Optional packages ==== |
|
49 You don’t need to install these packages to build Hedgewars, but if you don’t, some features will be missing. |
|
50 |
|
51 For PNG screenshots: |
|
52 || *Name* || *Version* || *Homepage* || |
|
53 || libpng || 1.2 || [http://www.libpng.org/pub/png/libpng.html] || |
|
54 |
|
55 For video recording: |
|
56 || *Name* || *Version* || *Homepage* || |
|
57 || libavcodec || ??? || [http://ffmpeg.org/libavcodec.html] || |
|
58 || libavformat || ??? || [http://ffmpeg.org/libavformat.html] || |
|
59 || FreeGLUT || 3.0 || [http://freeglut.sourceforge.net/] || |
|
60 |
|
61 *Note*: See also VideoRecorder for detailed instructions to build the video recorder. |
|
62 |
|
63 If you want to build the server you need a couple of Haskell-related packages. First you need GHC: |
|
64 || *Name* || *Version* || *Homepage* || |
|
65 || GHC || || [https://www.haskell.org/ghc/] || |
|
66 |
|
67 Then you need a couple of Haskell software. Note that package names for Haskell software varies wildly between Linux distributions. When in doubt, check your distribution’s documentation about any naming conventions they may have about Haskell packages. |
|
68 || *Haskell library name* || *Version* || *Hackage link* || |
|
69 || bytestring || || http://hackage.haskell.org/package/bytestring || |
|
70 || bytestring-show || || http://hackage.haskell.org/package/bytestring-show || |
|
71 || dataenc || || http://hackage.haskell.org/package/dataenc || |
|
72 || deepseq || || http://hackage.haskell.org/package/deepseq || |
|
73 || hslogger || || http://hackage.haskell.org/package/hslogger || |
|
74 || mtl || || http://hackage.haskell.org/package/mtl || |
|
75 || network || || http://hackage.haskell.org/package/network || |
|
76 || parsec3 || || http://hackage.haskell.org/package/parsec3 || |
|
77 || utf8-string || || http://hackage.haskell.org/package/utf8-string || |
|
78 || vector || || http://hackage.haskell.org/package/vector || |
|
79 || random || || http://hackage.haskell.org/package/random || |
|
80 || zlib || || http://hackage.haskell.org/package/zlib || |
|
81 || SHA || || http://hackage.haskell.org/package/SHA || |
|
82 || entropy || || http://hackage.haskell.org/package/entropy || |
|
83 |
|
84 |
|
85 === Resolving dependencies under Debian and Debian-like systems === |
|
86 These line contain `apt-get` lines you can simply paste into your shell and execute. Please remember to copy the _entire_ `apt-get` lines! |
24 These line contain `apt-get` lines you can simply paste into your shell and execute. Please remember to copy the _entire_ `apt-get` lines! |
87 |
25 |
88 {{{ |
26 {{{ |
89 sudo apt-get install mercurial cmake g++ 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 libphysfs-dev fonts-dejavu-core ttf-wqy-zenhei |
27 sudo apt-get install mercurial cmake g++ 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 libphysfs-dev fonts-dejavu-core ttf-wqy-zenhei |
90 }}} |
28 }}} |