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

相关推荐
招摇的一半月亮6 小时前
P2242 公路维修问题
数据结构·c++·算法
f***01937 小时前
CC++链接数据库(MySQL)超级详细指南
c语言·数据库·c++
合方圆~小文7 小时前
球型摄像机作为现代监控系统的核心设备
java·数据库·c++·人工智能
椰萝Yerosius8 小时前
[题解]2024CCPC郑州站——Z-order Curve
c++·算法
滨HI011 小时前
C++ opencv简化轮廓
开发语言·c++·opencv
学习路上_write11 小时前
FREERTOS_互斥量_创建和使用
c语言·开发语言·c++·stm32·单片机·嵌入式硬件
闻缺陷则喜何志丹13 小时前
【SOSDP模板 容斥原理 逆向思考】3757. 有效子序列的数量|分数未知
c++·算法·力扣·容斥原理·sosdp·逆向思考
BestOrNothing_201513 小时前
一篇搞懂 C++ 重载:函数重载 + 运算符重载,从入门到会用(含 ++、<<、== 实战)
c++·函数重载·运算符重载·operator·前置后置++·重载与重写
2501_9411444213 小时前
Python + C++ 异构微服务设计与优化
c++·python·微服务
程序猿编码13 小时前
PRINCE算法的密码生成器:原理与设计思路(C/C++代码实现)
c语言·网络·c++·算法·安全·prince