![]() ![]() When that finishes, click “Open Project”. After configuration finishes and the “Generate” reactivates, click it. Click “Configure” and select the Visual Studio generator (it should be pre-selected, so pressing “Finish” will suffice). create a build subdirectory in the source code directory. ![]() Start CMake and select the source code folder (where DDNet resides, the directory with CMakeLists.txt). Make run_tests Building on Windows with Visual Studioĭownload and install some version of Microsoft Visual Studio (as of writing, MSVS Community 2017) with C++ support, install Python 3 for all users and install CMake. To run the tests you must target run_tests with make: # copy or symlink libgtest.a and libgtest_main.a to your /usr/lib folder sudo cp *.a /usr/lib This library isn’t compiled, so you have to do it: In order to run the tests, you need to install the following library libgtest-dev. 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 and C++ connector. Note that the bundled MySQL libraries might not work properly on your system. It requires libmariadbclient-dev, libmysqlcppconn-dev and libboost-dev, which are also bundled for the common platforms. MySQL (or MariaDB) support in the server is not included in the binary releases but it can be built by specifying -DMYSQL=ON, like cmake -DMYSQL=ON. If you have the libraries installed, but still want to use the bundled ones instead, you can do so by removing your build directory and re-running CMake with -DPREFER_BUNDLED_LIBS=ON, e.g. ![]() ![]() Pacman -S cmake curl freetype2 opusfile sdl2 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |