How to compile server and set it up with MySQL (Mariadb) on Linux

Guides about mapping and everything Teeworlds related.

rafaelff
User
Posts: 36
Joined: Wed Apr 01, 2015 1:33 pm
Player profile: RafaelFF

Re: How to compile server and set it up with MySQL (Mariadb) on Linux

Post by rafaelff » Sun Feb 04, 2018 12:50 pm

deen wrote:
Sat Feb 03, 2018 7:13 pm

Code: Select all

cmake -DCMAKE_BUILD_TYPE=Release -DMYSQL=ON $CODEDIR && make
It is also possible to build only the server with:

Code: Select all

cmake -DCLIENT=OFF -DMYSQL=ON $CODEDIR && make
where $CODEDIR is the root directory of the DDNet source code.

In this case, you don't need to install client dependencies (freetype, alsa, sdl2 etc.). Instead it depends on zlib. Installing cmake is also required for building DDNet.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests