equal
deleted
inserted
replaced
24 |
24 |
25 It is likely that you will need to adjust some parameters, such as the Base SDK you have installed and for which architecture (ppc, i386, x86_64) you want to build. After that build as usual and copy the generated framework to the usual `/Library/Frameworks/` directory. |
25 It is likely that you will need to adjust some parameters, such as the Base SDK you have installed and for which architecture (ppc, i386, x86_64) you want to build. After that build as usual and copy the generated framework to the usual `/Library/Frameworks/` directory. |
26 |
26 |
27 === (Optional) Server === |
27 === (Optional) Server === |
28 |
28 |
29 If you want to compile server for hosting lan games, you need to download a Haskell compiler. We are going to use the Glasgow Haskell Compiler. |
29 If you want to compile server for hosting lan games, you need to download a Haskell compiler: we are going to use the Glasgow Haskell Compiler. |
30 |
30 |
31 * download the Haskell Platform and install both the GHC and Haskell Platform - http://lambda.galois.com/hp-tmp/2010.2.0.0/haskell-platform-2010.2.0.0.i386.dmg |
31 * download the Haskell Platform and install both the GHC and Haskell Platform - http://lambda.galois.com/hp-tmp/2010.2.0.0/haskell-platform-2010.2.0.0.i386.dmg |
32 * run `cabal update` to get an updated list of available libraries and install the necessary dependencies with |
32 * run `cabal update` to get an updated list of available libraries and install the necessary dependencies with |
33 {{{ |
33 {{{ |
34 sudo cabal install dataenc hslogger network-bytestring utf8-string |
34 sudo cabal install gameServer/hedgewars-server.cabal |
35 }}} |
35 }}} |
36 * then in the following cmake comand, remember to add `-DWITH_SERVER=1` or `-DBUNDLE` |
|
37 |
36 |
38 == Necessary Tools == |
37 == Necessary Tools == |
39 |
38 |
40 Download and install the following toolchains |
39 Download and install the following toolchains |
41 |
40 |
49 * download the source tarball or clone the hg repo |
48 * download the source tarball or clone the hg repo |
50 * configure the sources with the following line |
49 * configure the sources with the following line |
51 {{{ |
50 {{{ |
52 cmake . -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake -DCMAKE_BUILD_TYPE=Release |
51 cmake . -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake -DCMAKE_BUILD_TYPE=Release |
53 }}} |
52 }}} |
54 * (optional) if you want to build a relocatable bundle, that is a bundle you can copy on your friend's mac or distribute it, add `-DBUNDLE` to the above command line |
|
55 * (note) if you specify `-DBUNDLE` you'll need to install GHC as well |
|
56 * run `make` and `make install` |
53 * run `make` and `make install` |
57 |
54 |
58 Enjoy! |
55 Enjoy! |