author | sheepluva |
Mon, 25 Apr 2016 16:11:39 +0200 | |
changeset 11698 | e86feecadced |
parent 11362 | ed5a6478e710 |
child 11839 | 4f44013e33d4 |
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 |
|
11360 | 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 |
14 |
- bytestring-show package |
|
2141 | 15 |
- dataenc package |
16 |
- hslogger 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 |