Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Compiling on Debian or Ubuntu

Majesty edited this page Nov 19, 2021 · 1 revision

OTServBR-Global

Supported OS

  • Windows 10
  • Debian 10 and 11
  • Ubuntu 18.04 and 20.04

1. Install the required software

The following command will install Git, CMake, a compiler and the libraries used by OTServBR-Global.

Git will be used to download the source code, and CMake will be used to generate the build files.

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install git cmake build-essential libluajit-5.1-dev ca-certificates curl zip unzip tar pkg-config

Install vcpkg

git clone https://github.com/microsoft/vcpkg
cd vcpkg
./bootstrap-vcpkg.sh
cd ..

2. Download the source code

git clone --depth 1 https://github.com/opentibiabr/otservbr-global.git
cd otservbr-global

3. Checkout nightly branch (optional)

git checkout develop

4. Folder structure

.
├── otservbr-global
└── vcpkg

5. Configure and build

mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../../vcpkg/scripts/buildsystems/vcpkg.cmake ..
make -j`nproc`

-- Running vcpkg install

This step will take a long time on the first run, as it needs to download and install all the dependencies, so be patient!