BuildingOnLinux.wiki
changeset 263 afcb38bfd761
parent 253 d7db074d6efa
child 265 b0f68d7fe64e
equal deleted inserted replaced
262:4d5c4b93efb2 263:afcb38bfd761
    24 }}}
    24 }}}
    25 
    25 
    26 = Building process =
    26 = Building process =
    27 
    27 
    28 {{{
    28 {{{
    29 mkdir -p ~/games ~/hg/hedgewars/build
    29 mkdir -p ~/games ~/hg/hedgewars/
    30 cd ~/hg/hedgewars
    30 cd ~/hg/hedgewars
    31 hg clone -v https://hedgewars.googlecode.com/hg/ trunk
    31 hg clone -v https://hedgewars.googlecode.com/hg/ trunk
    32 }}}
    32 }}}
    33 
    33 
    34 The initial clone of the repository will take a while, is about 575MiB or so...
    34 The initial clone of the repository will take a while, is about 575MiB or so...
    35 
    35 
    36 {{{
    36 {{{
    37 cd ~/hg/hedgewars/build
    37 cd trunk
    38 cmake ../trunk -DCMAKE_BUILD_TYPE="DEBUG" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DNOSERVER=1
    38 cmake -DCMAKE_BUILD_TYPE="DEBUG" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DNOSERVER=1
    39 make install
    39 make install
    40 }}}
    40 }}}
    41 if you want to build the server as well, change -DNOSERVER=1 to -DNOSERVER=0
    41 if you want to build the server as well, change -DNOSERVER=1 to -DNOSERVER=0
    42 
    42 
    43 then wait for the build to complete, then run ...
    43 then wait for the build to complete, then run ...
    49 You can also create a launcher for it on your desktop or on applications menu if you wish, using the ~/games/bin/hedgewars path
    49 You can also create a launcher for it on your desktop or on applications menu if you wish, using the ~/games/bin/hedgewars path
    50 
    50 
    51 == Build Updates ===
    51 == Build Updates ===
    52 
    52 
    53 {{{
    53 {{{
    54 cd ~/hg/hedgewars/build
    54 cd ~/hg/hedgewars/trunk
    55 hg -R ../trunk pull -u
    55 hg pull -u
    56 cmake ../trunk -DCMAKE_BUILD_TYPE="DEBUG" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DNOSERVER=1
    56 cmake .
    57 make install
    57 make install
    58 }}}
    58 }}}