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

相关推荐
木子.李3473 小时前
排序算法总结(C++)
c++·算法·排序算法
freyazzr4 小时前
C++八股 | Day2 | atom/函数指针/指针函数/struct、Class/静态局部变量、局部变量、全局变量/强制类型转换
c++
fpcc5 小时前
跟我学c++中级篇——理解类型推导和C++不同版本的支持
开发语言·c++
终焉代码6 小时前
STL解析——list的使用
开发语言·c++
DevangLic6 小时前
【 *p取出内容 &a得到地址】
c++
鑫鑫向栄6 小时前
[蓝桥杯]修改数组
数据结构·c++·算法·蓝桥杯·动态规划
鑫鑫向栄6 小时前
[蓝桥杯]带分数
数据结构·c++·算法·职场和发展·蓝桥杯
m0_552200827 小时前
《UE5_C++多人TPS完整教程》学习笔记37 ——《P38 变量复制(Variable Replication)》
c++·游戏·ue5
小wanga7 小时前
【递归、搜索与回溯】专题三 穷举vs暴搜vs回溯vs剪枝
c++·算法·机器学习·剪枝
Code_流苏8 小时前
C++课设:简易日历程序(支持传统节假日 + 二十四节气 + 个人纪念日管理)
开发语言·c++·stl容器·课设·期末大作业·日历程序·面向对象设计