author | unc0rr |
Wed, 01 Jan 2014 14:16:01 +0400 | |
changeset 9902 | eb8e8b09b2f0 |
parent 8552 | 6c63c2833866 |
child 9991 | 3858d99476f5 |
child 11360 | 7a7611adf715 |
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 |
8546 | 11 |
- Physfs >= 2.1.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 |