Page 4 of 4

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

Posted: Sun Feb 04, 2018 12:50 pm
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.