INSTALL
changeset 2220 110266ba2ef7
parent 2141 3b06505dbd5d
child 2355 5c0cada78ea6
equal deleted inserted replaced
2219:07f5345ecae7 2220:110266ba2ef7
     1 To compile and install you need:
     1 To compile and install you need:
     2  - Qt >= 4.4
     2  - Qt >= 4.4
     3  - FreePascal >= 2.2.0
     3  - FreePascal >= 2.2.0
       
     4  - OpenAL >= 1.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_image >= 1.2
     7  - SDL_image >= 1.2
     8  - SDL_ttf >= 2.0
     8  - SDL_ttf >= 2.0
     9  - CMake >= 2.6.0
     9  - CMake >= 2.6.0
    10 For server:
    10 For server:
    11  - Glasgow Haskell Compiler 6.8.3
    11  - Glasgow Haskell Compiler 6.8.3
    13  - hslogger package
    13  - hslogger package
    14 
    14 
    15 1. Configure:
    15 1. Configure:
    16 $ cmake .
    16 $ cmake .
    17 or
    17 or
    18 $ cmake -DCMAKE_CXX_FLAGS="flags" -DCMAKE_INSTALL_PREFIX="install prefix" -DDATA_INSTALL_DIR="data dir" .
    18 $ cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="install_prefix" -DDATA_INSTALL_DIR="data_dir" .
    19 
    19 
    20 add -DWITH_SERVER=1 to compile net server
    20 add -DWITH_SERVER=1 to compile net server; to create a relocatable bundle under Mac OS X you can do
       
    21 
       
    22 $ cmake -DCMAKE_BUILD_TYPE="Release" -DBUNDLE=1 .
       
    23 
       
    24 if you have QT installed but it is not found you can set it up with -DQT_QMAKE_EXECUTABLE="path_to_qmake"
    21 
    25 
    22 2. Compile:
    26 2. Compile:
    23 $ make
    27 $ make
    24 
    28 
    25 3. Install:
    29 3. Install:
    26 # make install
    30 # make install
    27 
    31 
       
    32 
    28 That's all! Enjoy!
    33 That's all! Enjoy!