OTS Guide
Otland Forums
Otland on GitHub
Download TFS
Search…
Introduction
Compiling
Compile on Arch
Compiling on CentOS
Compiling on Debian GNU Linux
Compiling on Fedora
Compiling on FreeBSD
Compiling on Gentoo
Compiling on Mac OS X
Compiling on Ubuntu
Compiling on Windows
Compiling on Windows (vcpkg)
Running your first OT Server
TFS documentation
Glossary
Running your first ubuntu linux OT
Powered By
GitBook
Compiling on Mac OS X
1. Install the required software
1.1. Installing Homebrew
Homebrew is a package manager for Mac OS X. It uses formulae scripts to compile the software on your system. If you already have Homebrew installed, you can skip this step.
Open a Terminal window and run:
1
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Copied!
1.2. Installing software and libraries
The following command will install Git, CMake and the libraries used by The Forgotten Server.
Git will be used to download the source code, and CMake will be used to generate the build files.
1
$ brew install git cmake gmp mysql-connector-c luajit boost pugixml pkg-config fmt
Copied!
Install
cryptopp
manually (it is no longer available via brew). Make sure to use latest version, in case it is 8.5.0, you can try this:
1
wget https://github.com/weidai11/cryptopp/archive/refs/tags/CRYPTOPP_8_5_0.zip
2
unzip CRYPTOPP_8_5_0.zip && cd cryptopp-CRYPTOPP_8_5_0
3
make shared all
4
make install
Copied!
2. Download the source code
1
$ git clone --recursive https://github.com/otland/forgottenserver.git
Copied!
3. Generate the build files
1
$ cd forgottenserver
2
$ mkdir build; cd build
3
$ cmake ..
Copied!
4. Build
1
$ make
Copied!
Previous
Compiling on Gentoo
Next
Compiling on Ubuntu
Last modified
2mo ago
Copy link