diff options
| author | Walter Pagani <paganiwalter@gmail.com> | 2021-01-08 07:14:01 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-08 11:14:01 +0100 |
| commit | afd0af6edd8b175d58be2b8464128e7d83882acf (patch) | |
| tree | 31f67a0c21b1d0c5a784c3800ee3d8b9d5f75647 | |
| parent | b93817e01a3e8142c80c4d315023f2d47e2fec71 (diff) | |
| download | wiki-afd0af6edd8b175d58be2b8464128e7d83882acf.tar.gz wiki-afd0af6edd8b175d58be2b8464128e7d83882acf.tar.bz2 wiki-afd0af6edd8b175d58be2b8464128e7d83882acf.zip | |
Adding information in Installation (#336)
| -rw-r--r-- | docs/Installation.md | 53 |
1 files changed, 44 insertions, 9 deletions
diff --git a/docs/Installation.md b/docs/Installation.md index 50555fe..9b9ddcc 100644 --- a/docs/Installation.md +++ b/docs/Installation.md @@ -48,19 +48,19 @@ This will create an `azerothcore-wotlk` directory containing the AC source files A) Clone only the master branch + full history (smaller size - recommended): -``` +```sh git clone https://github.com/azerothcore/azerothcore-wotlk.git --branch master --single-branch azerothcore ``` B) Clone only the master branch + no previous history (smallest size): -``` +```sh git clone https://github.com/azerothcore/azerothcore-wotlk.git --branch master --single-branch azerothcore --depth 1 ``` C) Clone all branches and all history: -``` +```sh git clone https://github.com/azerothcore/azerothcore-wotlk.git azerothcore ``` @@ -71,12 +71,18 @@ Note: If you want to get the full history back, use `git fetch --unshallow` (if #### Compiling on GNU/Linux or Mac OS X -``` +```sh cd azerothcore mkdir build cd build ``` +or + +```sh +cd azerothcore && mkdir build && cd build +``` + Before running the CMake command, replace `$HOME/azeroth-server/` with the path of the server installation (where you want to place the compiled binaries). **CMAKE OPTIONS** @@ -88,35 +94,64 @@ Check the options here if you know what you're doing: [CMake options](CMake-opti At this point, you must be in your "build/" directory. -**Note**: in the following command the variable `$HOME` is the path of the **current user**, so if you are logged as root, $HOME will be "/root". +**Note**: in the following command the variable `$HOME` is the path of the **current user**, so if you are logged as root, $HOME will be "/root". You can check the state of the environment variable, as follows: + +```sh +echo $HOME +``` **Note2**: in case you use a non-default package for `clang`, you need to replace it accordingly. For example, if you installed `clang-6.0` then you have to replace `clang` with `clang-6.0` and `clang++` with `clang++-6.0` -``` +```sh cmake ../ -DCMAKE_INSTALL_PREFIX=$HOME/azeroth-server/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DTOOLS=0 -DSCRIPTS=1 ``` -Then, replacing `6` with the number of threads that you want to execute, type: +To know the amount of cores available. +You can use the following command +```sh +nproc --all ``` + +Then, replacing `6` with the number of threads that you want to execute, type: + +```sh make -j 6 make install ``` +or + +```sh +make -j 6 && make install +``` + **CMake on Mac OS X:** **Note**: in the follows command the variable `$HOME` is the path of the **current user**, so if you are logged as root, $HOME will be "/root". -``` +```sh cmake ../ -DCMAKE_INSTALL_PREFIX=$HOME/azeroth-server/ -DTOOLS=0 -DSCRIPTS=1 -DMYSQL_ADD_INCLUDE_PATH=/usr/local/include -DMYSQL_LIBRARY=/usr/local/lib/libmysqlclient.dylib -DREADLINE_INCLUDE_DIR=/usr/local/opt/readline/include -DREADLINE_LIBRARY=/usr/local/opt/readline/lib/libreadline.dylib -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include -DOPENSSL_SSL_LIBRARIES=/usr/local/opt/openssl/lib/libssl.dylib -DOPENSSL_CRYPTO_LIBRARIES=/usr/local/opt/openssl/lib/libcrypto.dylib ``` -Then, replacing `4` with the number of threads that you want to execute, type: +To know the amount of cores available. +You can use the following command +```sh +nproc --all ``` + +Then, replacing `4` with the number of threads that you want to execute, type: + +```sh make -j 4 make install ``` +or + +```sh +make -j 4 && make install +``` #### Compiling on Windows |
