mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge #1611
1611: Clear up instructions on using make r=heinrich5991 a=def- Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
commit
f84f96629d
11
README.md
11
README.md
|
@ -33,9 +33,9 @@ To compile DDNet yourself, execute the following commands in the source root:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
make
|
make -j8
|
||||||
|
|
||||||
DDNet requires additional libraries, that are bundled for the most common platforms (Windows, Mac, Linux, all x86 and x86\_64). The bundled libraries are now in the ddnet-libs submodule.
|
Pass the number of threads for compilation to `make -j`. DDNet requires additional libraries, that are bundled for the most common platforms (Windows, Mac, Linux, all x86 and x86\_64). The bundled libraries are now in the ddnet-libs submodule.
|
||||||
|
|
||||||
You can install the required libraries on your system, `touch CMakeLists.txt` and CMake will use the system-wide libraries by default. You can install all required dependencies and CMake on Debian or Ubuntu like this:
|
You can install the required libraries on your system, `touch CMakeLists.txt` and CMake will use the system-wide libraries by default. You can install all required dependencies and CMake on Debian or Ubuntu like this:
|
||||||
|
|
||||||
|
@ -75,6 +75,9 @@ Whether to download and compile GTest. Useful if GTest is not installed and, for
|
||||||
* **-DDEV=[ON|OFF]** <br>
|
* **-DDEV=[ON|OFF]** <br>
|
||||||
Whether to generate stuff necessary for packaging. Setting to ON will set CMAKE_BUILD_TYPE to Debug by default. Default value is OFF.
|
Whether to generate stuff necessary for packaging. Setting to ON will set CMAKE_BUILD_TYPE to Debug by default. Default value is OFF.
|
||||||
|
|
||||||
|
* **-GNinja** <br>
|
||||||
|
Use the Ninja build system instead of Make. This automatically parallizes the build and is generally faster. Compile with `ninja` instead of `make`. Install Ninja with `sudo apt install ninja-build` on Debian, `sudo pacman -S --needed ninja` on Arch Linux.
|
||||||
|
|
||||||
Running tests (Debian/Ubuntu)
|
Running tests (Debian/Ubuntu)
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
|
@ -85,7 +88,7 @@ This library isn't compiled, so you have to do it:
|
||||||
sudo apt install libgtest-dev
|
sudo apt install libgtest-dev
|
||||||
cd /usr/src/gtest
|
cd /usr/src/gtest
|
||||||
sudo cmake CMakeLists.txt
|
sudo cmake CMakeLists.txt
|
||||||
sudo make
|
sudo make -j8
|
||||||
|
|
||||||
# copy or symlink libgtest.a and libgtest_main.a to your /usr/lib folder
|
# copy or symlink libgtest.a and libgtest_main.a to your /usr/lib folder
|
||||||
sudo cp *.a /usr/lib
|
sudo cp *.a /usr/lib
|
||||||
|
@ -147,7 +150,7 @@ add_sqlserver w teeworlds record teeworlds "PW2" "localhost" "3306"
|
||||||
$ mkdir build
|
$ mkdir build
|
||||||
$ cd build
|
$ cd build
|
||||||
$ cmake -DMYSQL=ON ..
|
$ cmake -DMYSQL=ON ..
|
||||||
$ make
|
$ make -j8
|
||||||
$ ./DDNet-Server -f mine.cfg
|
$ ./DDNet-Server -f mine.cfg
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue