INSTALL
branchqmlfrontend
changeset 12855 1b2b84315d27
parent 12751 838515c4e6c5
equal deleted inserted replaced
11843:01f88c3b7b66 12855:1b2b84315d27
     1 To compile and install you need:
     1 INSTALL.md
     2  - CMake >= 2.6.0
       
     3  - FreePascal >= 2.2.4
       
     4  - Qt >= 4.7.0
       
     5  - SDL >= 2.0
       
     6  - SDL_net >= 2.0
       
     7  - SDL_mixer >= 2.0
       
     8  - SDL_image >= 2.0
       
     9  - SDL_ttf >= 2.0
       
    10  - Lua = 5.1.0
       
    11  - Physfs >= 2.0.0
       
    12 For server:
       
    13  - Glasgow Haskell Compiler >= 6.10
       
    14  - dataenc package
       
    15  - hslogger package
       
    16 For videorecording:
       
    17  - FFmpeg or LibAV
       
    18 For compressed screenshots:
       
    19  - libpng
       
    20 
       
    21 Lua will be automatically built if not found.
       
    22 
       
    23 PhysFS will internally built unless -DPHYSFS_SYSTEM=on is passed to cmake
       
    24 (also allows to set PHYSFS_LIBRARY and PHYSFS_INCLUDE_DIR if needed).
       
    25 
       
    26 1. Configure:
       
    27 $ cmake .
       
    28 or
       
    29 $ cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="install_prefix" \
       
    30 -DDATA_INSTALL_DIR="data_dir" -DNOSERVER=1 .
       
    31 
       
    32 Add -DNOSERVER=0 to compile net server (remember to check out the additional
       
    33 dependencies with the hedgewars-server.cabal configuration file. If you have
       
    34 Qt installed but it is not found, you can set it up with
       
    35 -DQT_QMAKE_EXECUTABLE="path_to_qmake".
       
    36 To get a glimpse of the main configuration options, you may use this command
       
    37 `cat CMakeLists.txt | grep option`
       
    38 
       
    39 2. Compile:
       
    40 $ make
       
    41 
       
    42 3. Install:
       
    43 # make install
       
    44 
       
    45 
       
    46 That's all! Enjoy!
       
    47