Skip to content

Compiling on Ubuntu 22.04

Codinablack edited this page Jun 7, 2024 · 3 revisions

By : Gesior.pl

Prepare system

apt update && apt -y upgrade mkdir /bts

Install premake5

apt install -y unzip make g++ uuid-dev cd /bts/ && wget https://github.com/premake/premake-core/archive/refs/heads/master.zip cd /bts/ && unzip master.zip && rm master.zip cd /bts/premake-core-master && make -f Bootstrap.mak linux mv /bts/premake-core-master/bin/release/premake5 /bin/premake5 rm -rf /bts/premake-core-master/bin/release/premake5

Install vcpkg

apt install -y curl zip unzip tar cd /bts && git clone https://github.com/microsoft/vcpkg.git /bts/vcpkg/bootstrap-vcpkg.sh

Install BlackTek vcpkg.json requirements

apt install -y pkg-config cd /bts && wget https://github.com/Black-Tek/BlackTek-Server/archive/refs/heads/master.zip cd /bts && unzip master.zip && rm master.zip && mv /bts/BlackTek-Server-master /bts/server cd /bts/server && /bts/vcpkg/vcpkg install

Compile BlackTek

cd /bts/server && premake5 gmake2 && make -j $(nproc) config=debug_64