Wrath of the Lichking Server AzerothCore unter Ubuntu 20.04 LTS installieren

2. Core Installation

2.1 Repository klonen

In unser Home-Verzeichnis (bei mir bspw. /home/wotlk/)

cd ~

klonen wir nun das Git-Repository vom Wotlk-Server:

git clone https://github.com/azerothcore/azerothcore-wotlk.git --branch master --single-branch azerothcore

2.2 Server kompilieren

Wir begeben uns in den entstanden Ordner azerothcore, erstellen darin einen Ordner build und begeben uns in diesen hinein.

cd azerothcore
mkdir build
cd build

Wir führen nun folgenden cmake-Befehl aus (im Ordner build):

cmake ../ -DCMAKE_INSTALL_PREFIX=$HOME/azeroth-server/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DTOOLS=1 -DSCRIPTS=static

Nun können wir den Quellcode kompilieren (kann, je nach Serverleistung, eine Weile dauern):

make -j$(nproc)

-j$(nproc) sorgt dafür, dass alle verfügbaren Kerne zum kompilieren genutzt werden.

Anschließend noch installieren:

make install

Die Pfade, die nach diesem Schritt angezeigt werden, merken wir uns am besten (denn wir brauchen sie noch).
In meinem Beispiel sind das:

wotlk@wowbuntu:~/azerothcore/build$ make install
[  4%] Built target g3dlib
[  4%] Built target Detour
[  5%] Built target Recast
[  6%] Built target fmt
[  6%] Built target sfmt
[  7%] Built target argon2
[ 10%] Built target jemalloc
[ 11%] Built target gsoap
[ 12%] Built target mpq
[ 17%] Built target common
[ 17%] Built target mapextractor
[ 17%] Built target vmap4assembler
[ 18%] Built target vmap4extractor
[ 19%] Built target mmaps_generator
[ 19%] Built target revision.h
[ 21%] Built target database
[ 22%] Built target shared
[ 22%] Built target authserver
[ 47%] Built target game
[ 99%] Built target scripts
[ 99%] Built target modules
[100%] Built target worldserver
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /home/wotlk/azeroth-server/bin/mapextractor
-- Set runtime path of "/home/wotlk/azeroth-server/bin/mapextractor" to "/home/wotlk/azeroth-server/lib"
-- Installing: /home/wotlk/azeroth-server/bin/vmap4assembler
-- Set runtime path of "/home/wotlk/azeroth-server/bin/vmap4assembler" to "/home/wotlk/azeroth-server/lib"
-- Installing: /home/wotlk/azeroth-server/bin/vmap4extractor
-- Set runtime path of "/home/wotlk/azeroth-server/bin/vmap4extractor" to "/home/wotlk/azeroth-server/lib"
-- Installing: /home/wotlk/azeroth-server/bin/mmaps_generator
-- Set runtime path of "/home/wotlk/azeroth-server/bin/mmaps_generator" to "/home/wotlk/azeroth-server/lib"
-- Installing: /home/wotlk/azeroth-server/etc/authserver.conf.dist
-- Installing: /home/wotlk/azeroth-server/bin/authserver
-- Set runtime path of "/home/wotlk/azeroth-server/bin/authserver" to "/home/wotlk/azeroth-server/lib"
-- Installing: /home/wotlk/azeroth-server/etc/worldserver.conf.dist
-- Installing: /home/wotlk/azeroth-server/bin/worldserver
-- Set runtime path of "/home/wotlk/azeroth-server/bin/worldserver" to "/home/wotlk/azeroth-server/lib"

Weiter geht es mit dem Extrahieren notwendiger Daten aus dem Spielclient auf der nächsten Seite.