INSTALL
branchwebgl
changeset 8330 aaefa587e277
parent 8125 814cc5cf0b66
child 8546 0d3f4a731233
equal deleted inserted replaced
8116:d24257910f8d 8330:aaefa587e277
     1 To compile and install you need:
     1 To compile and install you need:
     2  - Qt >= 4.5
     2  - CMake >= 2.6.0
     3  - FreePascal >= 2.2.4
     3  - FreePascal >= 2.2.0
       
     4  - Qt >= 4.5.0
     4  - SDL >= 1.2.5
     5  - SDL >= 1.2.5
     5  - SDL_net >= 1.2.5
     6  - SDL_net >= 1.2.5
     6  - SDL_mixer >= 1.2
     7  - SDL_mixer >= 1.2
     7  - SDL_image >= 1.2
     8  - SDL_image >= 1.2
     8  - SDL_ttf >= 2.0
     9  - SDL_ttf >= 2.0
     9  - CMake >= 2.6.0
       
    10  - Lua >= 5.1.0
    10  - Lua >= 5.1.0
       
    11  - Physfs >= 2.1
    11 For server:
    12 For server:
    12  - Glasgow Haskell Compiler >= 6.10
    13  - Glasgow Haskell Compiler >= 6.10
    13  - bytestring-show package
    14  - bytestring-show package
    14  - dataenc package
    15  - dataenc package
    15  - hslogger package
    16  - hslogger package
    16 For videorecording:
    17 For videorecording:
    17  - FFmpeg or LibAV
    18  - FFmpeg or LibAV
    18  - GLUT (when SDL < 2)
    19  - GLUT (when SDL < 2)
       
    20 For compressed screenshots:
       
    21  - libpng
       
    22 
       
    23 Lua will be automatically built if not found.
       
    24 
    19 
    25 
    20 1. Configure:
    26 1. Configure:
    21 $ cmake .
    27 $ cmake .
    22 or
    28 or
    23 $ cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="install_prefix" \
    29 $ cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="install_prefix" \
    24 -DDATA_INSTALL_DIR="data_dir" -DNOSERVER=1 .
    30 -DDATA_INSTALL_DIR="data_dir" -DNOSERVER=1 .
    25 
    31 
    26 add -DNOSERVER=0 to compile net server; if you have Qt installed but it is
    32 Add -DNOSERVER=0 to compile net server (remember to check out the additional
    27 not found you can set it up with -DQT_QMAKE_EXECUTABLE="path_to_qmake"
    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`
    28 
    38 
    29 2. Compile:
    39 2. Compile:
    30 $ make
    40 $ make
    31 
    41 
    32 3. Install:
    42 3. Install:
    33 # make install
    43 # make install
    34 
    44 
    35 
    45 
    36 That's all! Enjoy!
    46 That's all! Enjoy!
       
    47