This repository has been archived by the owner on May 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 328
Compiling on Debian or Ubuntu
Majesty edited this page Nov 19, 2021
·
1 revision
- Windows 10
- Debian 10 and 11
- Ubuntu 18.04 and 20.04
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 ..
git clone --depth 1 https://github.com/opentibiabr/otservbr-global.git
cd otservbr-global
git checkout develop
.
├── otservbr-global
└── vcpkg
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!