Skip to content

Compiling on Arch Linux

scopp edited this page Apr 5, 2022 · 2 revisions

Arch Linux

1. Install basic libraries

First install required development packages using pacman

sudo pacman -Syu base-devel git cmake boost physfs openssl lua51 glew libvorbis openal zlib libogg nlohmann-json protobuf --needed

2. Get the sources, compile and run

Get the source code from git

git clone git://github.com/mehah/otclient.git
cd otclient

Compile protobuf .proto files

cd src/framework/protobuf/proto/
./generate.sh
cd ../../../../

Compile otclient

cmake . -B build
make -c build
./build/otclient

3. Tips

If you want to speed up the make process and you have multiple cores, you can use -j to build using multiple cores.

For example, to build using 8 cores:

make -c build -j8

You can use nproc in order to use all cores available

make -c build -j$(nproc)