author | Wuzzy <almikes@aol.com> |
Sun, 16 Apr 2017 08:19:33 +0200 | |
changeset 12277 | 2c884bb73975 |
parent 11867 | fbe9bb9602eb |
child 12756 | 838515c4e6c5 |
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 |
|
11338 | 5 |
- SDL >= 2.0 |
6 |
- SDL_net >= 2.0 |
|
7 |
- SDL_mixer >= 2.0 |
|
8 |
- SDL_image >= 2.0 |
|
470 | 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 |
11867 | 14 |
- sandi package |
2141 | 15 |
- hslogger package |
11867 | 16 |
- regex-tdfa package |
7954 | 17 |
For videorecording: |
18 |
- FFmpeg or LibAV |
|
8120 | 19 |
For compressed screenshots: |
20 |
- libpng |
|
21 |
||
8125 | 22 |
Lua will be automatically built if not found. |
8120 | 23 |
|
8552 | 24 |
PhysFS will internally built unless -DPHYSFS_SYSTEM=on is passed to cmake |
25 |
(also allows to set PHYSFS_LIBRARY and PHYSFS_INCLUDE_DIR if needed). |
|
1006 | 26 |
|
470 | 27 |
1. Configure: |
1006 | 28 |
$ cmake . |
273 | 29 |
or |
5053 | 30 |
$ 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
|
31 |
-DDATA_INSTALL_DIR="data_dir" -DNOSERVER=1 . |
470 | 32 |
|
8120 | 33 |
Add -DNOSERVER=0 to compile net server (remember to check out the additional |
34 |
dependencies with the hedgewars-server.cabal configuration file. If you have |
|
35 |
Qt installed but it is not found, you can set it up with |
|
36 |
-DQT_QMAKE_EXECUTABLE="path_to_qmake". |
|
37 |
To get a glimpse of the main configuration options, you may use this command |
|
38 |
`cat CMakeLists.txt | grep option` |
|
1415
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1006
diff
changeset
|
39 |
|
470 | 40 |
2. Compile: |
478
487cc99af415
users should compile and configure package under user account :)
displacer
parents:
470
diff
changeset
|
41 |
$ make |
470 | 42 |
|
43 |
3. Install: |
|
273 | 44 |
# make install |
45 |
||
2220 | 46 |
|
457 | 47 |
That's all! Enjoy! |
8120 | 48 |