author | unc0rr |
Sun, 01 Nov 2015 16:58:34 +0300 | |
changeset 11264 | f5d5e1a51fd7 |
parent 10487 | b69b91779f10 |
child 11362 | ed5a6478e710 |
permissions | -rw-r--r-- |
273 | 1 |
To compile and install you need: |
8120 | 2 |
- CMake >= 2.6.0 |
10487 | 3 |
- FreePascal >= 2.2.4 |
4 |
- Qt >= 4.7.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 |
|
10487 | 10 |
- Lua = 5.1.0 |
9992
1773ef634b78
PhysicsFS 2.0.0 seems to be sufficient; also fix a typo
sheepluva
parents:
9991
diff
changeset
|
11 |
- Physfs >= 2.0.0 |
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 |
|
8552 | 25 |
PhysFS will internally built unless -DPHYSFS_SYSTEM=on is passed to cmake |
26 |
(also allows to set PHYSFS_LIBRARY and PHYSFS_INCLUDE_DIR if needed). |
|
1006 | 27 |
|
470 | 28 |
1. Configure: |
1006 | 29 |
$ cmake . |
273 | 30 |
or |
5053 | 31 |
$ 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
|
32 |
-DDATA_INSTALL_DIR="data_dir" -DNOSERVER=1 . |
470 | 33 |
|
8120 | 34 |
Add -DNOSERVER=0 to compile net server (remember to check out the additional |
35 |
dependencies with the hedgewars-server.cabal configuration file. If you have |
|
36 |
Qt installed but it is not found, you can set it up with |
|
37 |
-DQT_QMAKE_EXECUTABLE="path_to_qmake". |
|
38 |
To get a glimpse of the main configuration options, you may use this command |
|
39 |
`cat CMakeLists.txt | grep option` |
|
1415
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1006
diff
changeset
|
40 |
|
470 | 41 |
2. Compile: |
478
487cc99af415
users should compile and configure package under user account :)
displacer
parents:
470
diff
changeset
|
42 |
$ make |
470 | 43 |
|
44 |
3. Install: |
|
273 | 45 |
# make install |
46 |
||
2220 | 47 |
|
457 | 48 |
That's all! Enjoy! |
8120 | 49 |