README-OSX.md
author Dirk Zimmermann <dirk@pep-project.org>
Sun, 10 Jul 2016 14:08:44 +0200
changeset 61 21946f2c659f
parent 57 ae2ba71f718a
child 110 15c13dea3b8e
permissions -rw-r--r--
Ability to build on OS X, server is runnable.
     1 # Notes for OS X
     2 
     3 Please see also the README.md, these are only OS X specific instructions.
     4 You'll need some special environment to run the server, see "Running the server".
     5 
     6 # Building libevent on OS X
     7 
     8 ## MacPorts
     9 
    10 Install [MacPorts](https://www.macports.org/) for your
    11 [version of OS X/macOS](https://www.macports.org/install.php).
    12 
    13 Note that you need [Xcode installed](https://www.macports.org/install.php)
    14 for MacPorts, and for building the engine. You also need to accept Xcode's EULA.
    15 
    16 ```
    17 sudo port install openssl
    18 sudo port install boost
    19 ```
    20 
    21 ## libevent
    22 
    23 ```
    24 export LDFLAGS=-L/opt/local
    25 export CFLAGS=-I/opt/local/include
    26 
    27 ./configure --prefix $HOME
    28 
    29 make
    30 make install
    31 ```
    32 
    33 ## server/Makefile
    34 
    35 ```
    36 cd server
    37 make
    38 ```
    39 
    40 # Running the server
    41 
    42 ```
    43 LD_LIBRARY_PATH=/opt/local/lib ./mt-server
    44 ```