
This automatically parallizes the build and is generally faster. Use the Ninja build system instead of Make. On Windows you need to install the Vulkan SDK and set the VULKAN_SDK environment flag accordingly. You need to install libminiupnpc-dev on Debian, miniupnpc on Arch Linux. Whether to enable UPnP support for the server. Setting to ON will set CMAKE_BUILD_TYPE to Debug by default. If enabled, don't generate stuff necessary for packaging. Whether to optimize for development, speeding up the compilation process a little. Useful if GTest is not installed and, for Linux users, there is no suitable package providing it. Whether to add video recording support using FFmpeg to the client. If set to OFF, DDNet will not depend on Curl, Freetype, Ogg, Opus, Opusfile, and SDL2. Default value is ON for Windows and Linux. Packagers may want to disable this for their packages. GRANT ALL PRIVILEGES ON ddnet.* TO PRIVILEGES Note that this requires a running MySQL/MariaDB database on localhost with this setup:ĬREATE USER IDENTIFIED BY 'thebestpassword' Whether to test MySQL/MariaDB support in GTest based tests. Make sure that the CMake configuration summary says that it found MySQL libs that were not bundled (no "using bundled libs"). If you run into connection problems with the MySQL server, for example that it connects as root while you chose another user, make sure to install your system libraries for the MySQL client. Note that the bundled MySQL libraries might not work properly on your system. Setting to ON requires the libmariadbclient-dev library installed, which are also provided as bundled libraries for the common platforms. Requires at least MySQL 8.0 or MariaDB 10.2. Whether to enable MySQL/MariaDB support for server. Setting to ON requires the libwebsockets-dev library installed. Whether to enable WebSocket support for server. If set to OFF, will only use bundled libraries when system libraries are not found. Setting to ON will make DDNet use third party libraries available in the ddnet-libs folder, which is the git-submodule target of the ddnet-libs repository mentioned above - Useful if you do not have those libraries installed and want to avoid building them. Whether to prefer bundled libraries over system libraries.

See CMAKE_BUILD_TYPE in CMake Documentation for more information. If not set, defaults to "Release" if -DDEV=ON is not used, and "Debug" if -DDEV=ON is used. DCMAKE_BUILD_TYPE=Īn optional CMake variable for setting the build type. The following is a non-exhaustive list of build arguments that can be passed to the cmake command-line tool in order to enable or disable options in build time: The bundled libraries are now in the ddnet-libs submodule. DDNet requires additional libraries, that are bundled for the most common platforms (Windows, Mac, Linux, all x86 and x86_64).


$(nproc) in this case returns the number of processing units. Pass the number of threads for compilation to make -j.
