1 环境要求
sudo apt-get update && sudo apt-get install git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev
另外自行安装mysql服务端
2 编译项目
git clone https://github.com/azerothcore/azerothcore-wotlk.git --branch master --single-branch azerothcore --depth 1
cd azerothcore
mkdir build
cd build
sudo cmake ../ -DCMAKE_INSTALL_PREFIX=/srv/azerothcore-wotlk -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DTOOLS_BUILD=all -DSCRIPTS=static -DMODULES=static
这里我选择把编译好的程序放到/srv/azerothcore-wotlk文件中
查看自己的机器核心有多少个线程