CMake 错误:找不到变量.ACE_INCLUDE_DIR(高级)

CMake Error: variable is NOTFOUND. ACE_INCLUDE_DIR (ADVANCED)

本文关键字:INCLUDE DIR 高级 ACE 错误 找不到 变量 CMake      更新时间:2023-10-16

我只是尝试在 Debian 9 上编译最新的 AzerothCore,并没有触及源代码,只是拉动它并使用了安装指南中描述的 sh。CMake 给了我这个错误:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ACE_INCLUDE_DIR (ADVANCED)

Debian 9 与最新的 AzerothCore。Ace肯定安装了他们的最新版本。

预期:无错误。实际结果:错误。

sudo apt-get update然后执行sudo apt-get install libace-6.* libace-dev

目前为自己工作的当前版本是 6.3.3。另外,我不使用 sh 安装程序,所以不确定这是否可能是您的问题。

我只是用cmake ../ -DCMAKE_INSTALL_PREFIX=/home/youruser/azeroth-server/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DTOOLS=0 -DSCRIPTS=1

我从TrinityCore的要求开始,遗憾的是忘记安装AzerothCore所需的libace。需要像DJ Boxer建议的那样sudo apt-get install libace-6.* libace-dev