Skip to content

Compiling on Debian 7 Wheezy

peonso edited this page Sep 13, 2022 · 6 revisions

Compiling OTHire on Debian 7

(tested and working with Debian 9 aswell, for Debian 10 check https://github.com/Ezzz-dev/OTHire/wiki/Compiling-on-Debian-10-buster)

Start by getting your dependencies:

sudo apt-get -y install autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev libcrypto++-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev libssl-dev lua5.1 liblua5.1-sql-mysql-dev libncurses5-dev git

Then lets clone this repository:

git clone https://github.com/Ezzz-dev/OTHire

Now go to the source location:

cd OTHire/source

Lets generate out build files:

sh autogen.sh

Lets configure our build:

./configure --enable-mysql --enable-server-diag

Now lets build:

make

You can add -j X to ```make`` and replace X with the number of cores + 1 that you have. This will speed up the build substantially.

A small shorcut to compile & run server (you need to be at server folder):

cd source && sh autogen.sh && ./configure --enable-mysql --enable-server-diag && make -j $(nproc) && mv otserv ../ && cd .. && ./otserv