-
Notifications
You must be signed in to change notification settings - Fork 214
MacOS Installation
reiichi001 edited this page Jul 27, 2020
·
7 revisions
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.
brew install cmake git mysql zlib
git clone --recursive https://github.com/SapphireMordred/Sapphire.git sapphire
#required for current client version. Otherwise checkout the appropriate version for your client
git checkout develop
mkdir build && cd build
cmake .. -DCMAKE_CXX_COMPILER=/usr/bin/clang++
make -j 4
The build will output the binaries into bin/
in the folder you invoke cmake from, 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.
Getting Started
About
Installation
Developing
Actor Control
Scripting
Administration
Debug Commands
GM Commands
Other
PS4 Support