Edited wiki page BuildingOnMac through web user interface.
authorvittorio.giovara@gmail.com
Sun, 14 Nov 2010 22:29:50 +0000
changeset 33 397cb8bbddde
parent 32 5f66adfa478c
child 34 bb98d418d1e3
Edited wiki page BuildingOnMac through web user interface.
BuildingOnMac.wiki
--- a/BuildingOnMac.wiki	Sun Nov 14 00:14:22 2010 +0000
+++ b/BuildingOnMac.wiki	Sun Nov 14 22:29:50 2010 +0000
@@ -24,6 +24,17 @@
 
 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.
 
+=== (Optional) Server ===
+
+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.
+
+  * 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
+  * run `cabal update` to get an updated list of available libraries and install the necessary dependencies with
+{{{
+sudo cabal install dataenc hslogger network-bytestring
+}}}
+  * then in the following cmake comand, remember to add `-DWITH_SERVER=1` or `-DBUNDLE`
+
 == Necessary Tools ==
 
 Download and install the following toolchains
@@ -41,6 +52,7 @@
 cmake . -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake -DCMAKE_BUILD_TYPE=Release
 }}}
   * (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
+  * (note) if you specify `-DBUNDLE` you'll need to install GHC as well
   * run `make` and `make install`
 
 Enjoy!
\ No newline at end of file