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

Read tips and guides about teeworlds-related subjects (mapping, compiling, ..).
rafaelff
Posts: 36
Joined: Wed Apr 01, 2015 1:33 pm
Player profile: http://ddnet.tw/players/RafaelFF/

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

Post by rafaelff »

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 3 guests