BuildingOnLinux.wiki
changeset 154 030bb9b4470b
parent 131 b21fdbe0d380
child 155 2b1370b1f023
equal deleted inserted replaced
153:23efe87db6b6 154:030bb9b4470b
     1 #summary Instructions for building Hedgewars on Linux
     1 #summary Instructions for building Hedgewars on Linux (debian focus)
     2 #labels Phase-Implementation,Phase-Deploy,Phase-Support
     2 #labels Phase-Implementation,Phase-Deploy,Phase-Support
     3 
     3 
     4 = Introduction =
     4 = Introduction =
     5 
     5 
     6 Please see the original post here: http://www.hedgewars.org/node/2215#comment-15049
     6 Please see the original post here: http://www.hedgewars.org/node/2215#comment-15049
     8 
     8 
     9 = Prerequisites =
     9 = Prerequisites =
    10 
    10 
    11 {{{
    11 {{{
    12 sudo apt-get install mercurial cmake qt4-qmake libqt4-dev libsdl1.2-dev libsdl-net1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev liblua5.1-dev fpc
    12 sudo apt-get install mercurial cmake qt4-qmake libqt4-dev libsdl1.2-dev libsdl-net1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev liblua5.1-dev fpc
       
    13 }}}
       
    14 note, if you want to try building the server as well (requires libghc base 4.3 right now) try these too:
       
    15 {{{
       
    16 sudo apt-get install ghc libghc-binary-dev libghc-bytestring-show-dev libghc-dataenc-dev libghc-deepseq-dev libghc-hslogger-dev libghc-mtl-dev libghc-network-dev libghc-parsec3-dev
    13 }}}
    17 }}}
    14 
    18 
    15 = Building process =
    19 = Building process =
    16 
    20 
    17 {{{
    21 {{{
    26 {{{
    30 {{{
    27 cd ~/hg/hedgewars/trunk
    31 cd ~/hg/hedgewars/trunk
    28 cmake -DCMAKE_BUILD_TYPE="DEBUG" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DWITH_SERVER=0
    32 cmake -DCMAKE_BUILD_TYPE="DEBUG" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DWITH_SERVER=0
    29 make install
    33 make install
    30 }}}
    34 }}}
       
    35 if you want to build the server as well, change -DWITH_SERVER=0 to -DWITH_SERVER=1
    31 
    36 
    32 then wait for the build to complete, then run ...
    37 then wait for the build to complete, then run ...
    33 
    38 
    34 {{{
    39 {{{
    35 ~/games/bin/hedgewars
    40 ~/games/bin/hedgewars