INSTALL
author Wuzzy <almikes@aol.com>
Sat, 23 Sep 2017 21:05:57 +0200
changeset 12505 82c75a317d48
parent 11862 fbe9bb9602eb
child 12751 838515c4e6c5
permissions -rw-r--r--
Randomized teams now can have any random hats (not just from types.ini) The predefined hat sets still work, however. There are now 3 types of hat selections: 1) Use hats from types.ini 2) Randomly select one hat for all hedgehogs 3) Randomly select hat for each hedgehog (rare)

To compile and install you need:
 - CMake >= 2.6.0
 - FreePascal >= 2.2.4
 - Qt >= 4.7.0
 - SDL >= 2.0
 - SDL_net >= 2.0
 - SDL_mixer >= 2.0
 - SDL_image >= 2.0
 - SDL_ttf >= 2.0
 - Lua = 5.1.0
 - Physfs >= 2.0.0
For server:
 - Glasgow Haskell Compiler >= 6.10
 - sandi package
 - hslogger package
 - regex-tdfa package
For videorecording:
 - FFmpeg or LibAV
For compressed screenshots:
 - libpng

Lua will be automatically built if not found.

PhysFS will internally built unless -DPHYSFS_SYSTEM=on is passed to cmake
(also allows to set PHYSFS_LIBRARY and PHYSFS_INCLUDE_DIR if needed).

1. Configure:
$ cmake .
or
$ cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="install_prefix" \
-DDATA_INSTALL_DIR="data_dir" -DNOSERVER=1 .

Add -DNOSERVER=0 to compile net server (remember to check out the additional
dependencies with the hedgewars-server.cabal configuration file. If you have
Qt installed but it is not found, you can set it up with
-DQT_QMAKE_EXECUTABLE="path_to_qmake".
To get a glimpse of the main configuration options, you may use this command
`cat CMakeLists.txt | grep option`

2. Compile:
$ make

3. Install:
# make install


That's all! Enjoy!