author | Rowan D |
Fri, 30 Nov 2012 10:51:29 +0100 | |
changeset 8150 | 6b30a4cd7c7c |
parent 8125 | 814cc5cf0b66 |
child 8546 | 0d3f4a731233 |
permissions | -rw-r--r-- |
273 | 1 |
To compile and install you need: |
8120 | 2 |
- CMake >= 2.6.0 |
3 |
- FreePascal >= 2.2.0 |
|
4 |
- Qt >= 4.5.0 |
|
470 | 5 |
- SDL >= 1.2.5 |
6 |
- SDL_net >= 1.2.5 |
|
2549 | 7 |
- SDL_mixer >= 1.2 |
470 | 8 |
- SDL_image >= 1.2 |
9 |
- SDL_ttf >= 2.0 |
|
3301 | 10 |
- Lua >= 5.1.0 |
8125 | 11 |
- Physfs >= 2.1 |
2141 | 12 |
For server: |
5053 | 13 |
- Glasgow Haskell Compiler >= 6.10 |
14 |
- bytestring-show package |
|
2141 | 15 |
- dataenc package |
16 |
- hslogger package |
|
7954 | 17 |
For videorecording: |
18 |
- FFmpeg or LibAV |
|
19 |
- GLUT (when SDL < 2) |
|
8120 | 20 |
For compressed screenshots: |
21 |
- libpng |
|
22 |
||
8125 | 23 |
Lua will be automatically built if not found. |
8120 | 24 |
|
1006 | 25 |
|
470 | 26 |
1. Configure: |
1006 | 27 |
$ cmake . |
273 | 28 |
or |
5053 | 29 |
$ cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="install_prefix" \ |
7562
a79082c2a28e
koda changed the CMake flag w/o updating the wiki or INSTALL file :(
nemo
parents:
5053
diff
changeset
|
30 |
-DDATA_INSTALL_DIR="data_dir" -DNOSERVER=1 . |
470 | 31 |
|
8120 | 32 |
Add -DNOSERVER=0 to compile net server (remember to check out the additional |
33 |
dependencies with the hedgewars-server.cabal configuration file. If you have |
|
34 |
Qt installed but it is not found, you can set it up with |
|
35 |
-DQT_QMAKE_EXECUTABLE="path_to_qmake". |
|
36 |
To get a glimpse of the main configuration options, you may use this command |
|
37 |
`cat CMakeLists.txt | grep option` |
|
1415
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1006
diff
changeset
|
38 |
|
470 | 39 |
2. Compile: |
478
487cc99af415
users should compile and configure package under user account :)
displacer
parents:
470
diff
changeset
|
40 |
$ make |
470 | 41 |
|
42 |
3. Install: |
|
273 | 43 |
# make install |
44 |
||
2220 | 45 |
|
457 | 46 |
That's all! Enjoy! |
8120 | 47 |