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

相关推荐
「QT(C++)开发工程师」3 小时前
C++ auto 用法详解
开发语言·c++
OPEN-F3 小时前
C++STL教程:容器适配器与实用工具
开发语言·c++
OPEN-F4 小时前
C++模板教程:变参模板、折叠表达式与SFINAE
java·开发语言·c++
有点。4 小时前
C++二叉搜索树进阶
开发语言·c++
HugoStudio_SWAN4 小时前
【擦除重绘】C++ 控制台动画:弹跳 Logo DVD 屏保效果
开发语言·c++·学习·程序人生
kyle~5 小时前
C++_STL---迭代器失效
开发语言·c++
wuminyu7 小时前
深入剖析 Panama Off-heap 的性能损耗与开销
java·linux·c语言·jvm·c++
rhythm-ring7 小时前
宏定义续行符 \ 的使用与踩坑
c语言·c++
江安下小雨8 小时前
muduo网络库(十六):新增连接池模块
网络·c++
「QT(C++)开发工程师」8 小时前
C++11 std::unique_ptr — 独占所有权的智能指针
c语言·开发语言·c++·qt