BuildingOnMac.wiki
changeset 33 397cb8bbddde
parent 27 6fc5b427224f
child 34 bb98d418d1e3
equal deleted inserted replaced
32:5f66adfa478c 33:397cb8bbddde
    22 
    22 
    23 Since there is no framework distribution for ogg vorbis libraries, we will need to compile our own. Extract the sources and open the relative .xcodeproj file.
    23 Since there is no framework distribution for ogg vorbis libraries, we will need to compile our own. Extract the sources and open the relative .xcodeproj file.
    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 ===
       
    28 
       
    29 If you want to compile server for hosting lan games, you need to download an Haskell compiler. We are going to use the Glasgow Haskell Compiler.
       
    30 
       
    31   * download the Haskell Platform and install both the GHC and HaskellPlatform - 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
       
    33 {{{
       
    34 sudo cabal install dataenc hslogger network-bytestring
       
    35 }}}
       
    36   * then in the following cmake comand, remember to add `-DWITH_SERVER=1` or `-DBUNDLE`
       
    37 
    27 == Necessary Tools ==
    38 == Necessary Tools ==
    28 
    39 
    29 Download and install the following toolchains
    40 Download and install the following toolchains
    30 
    41 
    31   * Freepascal compiler - http://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/2.4.0/fpc-2.4.0.intel-macosx.dmg/download
    42   * Freepascal compiler - http://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/2.4.0/fpc-2.4.0.intel-macosx.dmg/download
    39   * configure the sources with the following line
    50   * configure the sources with the following line
    40 {{{
    51 {{{
    41 cmake . -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake -DCMAKE_BUILD_TYPE=Release
    52 cmake . -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake -DCMAKE_BUILD_TYPE=Release
    42 }}}
    53 }}}
    43   * (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
    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
    44   * run `make` and `make install`
    56   * run `make` and `make install`
    45 
    57 
    46 Enjoy!
    58 Enjoy!