Building - SapphireServer/Sapphire GitHub Wiki
Compiling and installing Sapphire
OS specific guides:
Download Source
The best way to get the code for Sapphire is to use git
. This document will assume you're using a git clone, but the master tarball from GitHub should work as well for a single build rather than developing. If you intend to develop, you should absolutely use git.
After a git clone, cd into the repository and initialise the library submodules.
$ git clone https://github.com/SapphireMordred/Sapphire.git sapphire
$ cd sapphire
$ git submodule init
Install Dependencies
Sapphire requires CMake and a C++ compiler to build. The specifics are best left for the OS documentation in the side bar to the right. You will also need a copy of the the MySQL 5.7 and zlib libraries plus the Sapphire bundled libraries. All of these can be found in the git submodule (see deps
folder), but you may wish to use system libraries. If you used the tarball for whatever reason, you'll need to download them separately into deps
.
Compile Project
Once you have the dependencies setup, you can run CMake either in CLI, the CMake GUI, or your IDE of choice to generate project files for your compiler. After that it's as simple as building the resulting project file. The resulting binaries should be in the top level bin
directory, along with a config
directory with settings for each of the servers.
Install Servers
The servers currently have no installation or packaging target but can be run as is. Load up the data into your DB with the DBM tool, start any server once to generate a default config file, then configure the servers in the config/config.ini
file, and start the servers. You can then use the launcher to point your client at the servers.