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

make2: stopped in /root/github/azerothcore/build

1 error

相关推荐
wanghu202428 分钟前
ABC460_E题题解
c++·算法
智者知已应修善业1 小时前
【51单片机象棋快棋赛 电子裁判器】2023-12-27
c++·经验分享·笔记·算法·51单片机
晚风予卿云月1 小时前
二分算法练习
数据结构·c++·算法·竞赛·算法随笔
lilili也1 小时前
C++:文件操作
c++
Lhan.zzZ2 小时前
C++多线程——std::thread与condition_variable形象理解
c++
头歌实践平台2 小时前
C++面向对象 - 运算符重载的应用
开发语言·c++·算法
思麟呀2 小时前
C++11并发编程:互斥锁
linux·开发语言·c++·windows
AC赳赳老秦2 小时前
OpenClaw批量任务队列优化:解决任务堆积、执行缓慢、优先级混乱问题
java·大数据·数据库·c++·自动化·php·openclaw
晚风予卿云月2 小时前
《二分答案》算法练习
数据结构·c++·算法·二分·竞赛·算法随笔
郭涤生2 小时前
C++ 各类数据的内存分区与读写性能详解
开发语言·c++