Skip to content
Ay'yaruq Dotharl edited this page Nov 25, 2017 · 7 revisions

Installing Sapphire on MacOS

You will need a development environment and at least OS X El Capitan (macOS High Sierra recommended) to build Sapphire. To setup your environment, Homebrew is recommended and this document will assume you're using it. To get started, see the Homebrew documentation, which also includes how to setup XCode Command Line Tools which you'll need for compilation.

Setup Dependencies

brew install boost cmake git mysql zlib

Clone the Source

git clone https://github.com/SapphireMordred/Sapphire.git sapphire
cd sapphire
git submodule init

Compile

mkdir build && cd build
cmake .. -DCMAKE_CXX_COMPILER=/usr/bin/clang++
make -j 4

Configure

The build will output the binaries into bin/ in the top level folder, along with a subdirectory for config files. You will need the game data files plus a running DB to point the binaries at.

# configure MySQL, skip this if it's already running
mysql.server start
mysql_secure_installation
mysql.server stop

# start it as a service
brew services start mysql

You can then run the servers as normal processes.

FFXIV Sapphire

Deprecated (4.0~5.58)

Getting Started
About
Installation

Installing
Linux
Mac
Windows

Developing
Actor Control
Scripting

Administration
Debug Commands
GM Commands

Other
PS4 Support

Clone this wiki locally