AzerothCore安装记录

尝试在FreeBSD系统下安装AzerothCore

首先安装相关软件

bash 复制代码
pkg install cmake mysql80-server boost-all

装完mysql之后提示:

MySQL80 has a default /usr/local/etc/mysql/my.cnf,

remember to replace it with your own

or set `mysql_optfile="$YOUR_CNF_FILE` in rc.conf.

安装和编译AzerothCore

bash 复制代码
# 下载软件
git clone https://github.com/azerothcore/azerothcore-wotlk.git --branch master --single-branch azerothcore

# 创建build目录并进入该目录
cd azerothcore && mkdir build && cd build

# cmake配置
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=static

# 编译
make -j 8

# 安装
make install

如果git 失败,可以尝试加上参数-depth 5

目前情况

编译没通过,好像freebsd编译不过去。

调试

编译报错fatal error: arithmetic on a pointer to the function type 'char *(int, int)'

/root/github/azerothcore/src/common/Utilities/Timer.cpp:250:17: fatal error: arithmetic on a pointer to the function type 'char *(int, int)'

return time + timezone;

^ ~~~~~~~~

1 error generated.

--- src/common/CMakeFiles/common.dir/Utilities/Timer.cpp.o ---

*** [src/common/CMakeFiles/common.dir/Utilities/Timer.cpp.o] Error code 1

make[2]: stopped in /root/github/azerothcore/build

1 error

相关推荐
u01092727121 小时前
C++中的策略模式变体
开发语言·c++·算法
Aevget1 天前
MFC扩展库BCGControlBar Pro v37.2新版亮点:控件功能进一步升级
c++·mfc·界面控件
Tansmjs1 天前
C++与GPU计算(CUDA)
开发语言·c++·算法
挖矿大亨1 天前
c++中的函数模版
java·c++·算法
阿基米东1 天前
基于 C++ 的机器人软件框架(具身智能)开源通信库选型分析
c++·机器人·开源
偷星星的贼111 天前
C++中的对象池模式
开发语言·c++·算法
CN-Dust1 天前
【C++】洛谷P3073 [USACO13FEB] Tractor S
开发语言·c++
2401_829004021 天前
C++中的适配器模式变体
开发语言·c++·算法
平生不喜凡桃李1 天前
二叉树遍历非递归写法: 栈
c++··二叉树遍历·非递归
-To be number.wan1 天前
算法学习日记 | 枚举
c++·学习·算法