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

相关推荐
ctyshr23 分钟前
C++编译期数学计算
开发语言·c++·算法
努力写代码的熊大40 分钟前
c++异常和智能指针
java·开发语言·c++
John_ToDebug1 小时前
WebContent 与 WebView:深入解析浏览器渲染架构的双层设计
c++·chrome·ui
千秋乐。1 小时前
C++-string
开发语言·c++
孞㐑¥1 小时前
算法—队列+宽搜(bfs)+堆
开发语言·c++·经验分享·笔记·算法
yufuu981 小时前
并行算法在STL中的应用
开发语言·c++·算法
charlie1145141911 小时前
嵌入式C++教程——ETL(Embedded Template Library)
开发语言·c++·笔记·学习·嵌入式·etl
陳10301 小时前
C++:AVL树的模拟实现
开发语言·c++
CSDN_RTKLIB1 小时前
错进错出得到正确的字节序列
c++
闻缺陷则喜何志丹2 小时前
【前后缀分解 排序】B4274 [蓝桥杯青少年组省赛 2023] 数字游戏|普及+
c++·蓝桥杯·排序·洛谷·前后缀分解