Open chachecete opened 2 years ago
I'm not able to fully understand this language. I can support in English, Japanese, or Chinese. From my understand, it looks like module is not configured correctly with CMake. Did you re-run CMake after installing module?
ZhengPeiRu21, hello! I have a similar problem. Below is the text of the error.
15>C:\AzerothCore\azerothcore-wotlk-bot\modules\mod-playerbots\src\strategy\values\AttackersValue.cpp(75,24): error C2039: "getThreatMgr": not a member of "Unit". 15>C:\AzerothCore\azerothcore-wotlk-bot\modules\mod-playerbots\src\ServerFacade.h(11): message : see "Unit" declaration 15>C:\AzerothCore\azerothcore-wotlk-bot\modules\mod-playerbots\src\strategy\values\AttackersValue.cpp(75,68): error C2039: "getThreatMgr": not a member of "Unit". 15>C:\AzerothCore\azerothcore-wotlk-bot\modules\mod-playerbots\src\ServerFacade.h(11): message : see "Unit" declaration 15>C:\AzerothCore\azerothcore-wotlk-bot\modules\mod-playerbots\src\strategy\values\AttackersValue.cpp(75,111): error C2039: "getThreatMgr": not a member of "Unit". 15>C:\AzerothCore\azerothcore-wotlk-bot\modules\mod-playerbots\src\ServerFacade.h(11): message : see "Unit" declaration 15>C:\AzerothCore\azerothcore-wotlk-bot\modules\mod-playerbots\src\strategy\values\AttackersValue.cpp(110,37): error C2039: "getThreatMgr": not a member of "Unit". 15>C:\AzerothCore\azerothcore-wotlk-bot\modules\mod-playerbots\src\ServerFacade.h(11): message : see "Unit" declaration 15>C:\AzerothCore\azerothcore-wotlk-bot\modules\mod-playerbots\src\strategy\values\AttackersValue.cpp(134,59): error C2039: "getThreatMgr": not a member of "Unit". 15>C:\AzerothCore\azerothcore-wotlk-bot\modules\mod-playerbots\src\ServerFacade.h(11): message : see "Unit" declaration 15>C:\AzerothCore\azerothcore-wotlk-bot\modules\mod-playerbots\src\strategy\values\AttackersValue.cpp(149,44): error C2039: "getThreatMgr": not a member of "Unit". 15>C:\AzerothCore\azerothcore-wotlk-bot\modules\mod-playerbots\src\ServerFacade.h(11): message : see "Unit" declaration
@xBarselonx Please ensure you are using up-to-date module. getThreatMgr method was recently changed to GetThreatMgr with capital letter, and the module has been updated to reflect this, but you are trying to compile a version with a lower-case method, so I think your code is out of date.
@xBarselonx Please ensure you are using up-to-date module. getThreatMgr method was recently changed to GetThreatMgr with capital letter, and the module has been updated to reflect this, but you are trying to compile a version with a lower-case method, so I think your code is out of date.
Actually I downloaded the source files from here https://github.com/ZhengPeiRu21/azerothcore-wotlk/tree/Playerbot. I am far from programming. Please explain what I need to do to compile azerothcore-wotlk version with bots using GetThreatMgr method?
15>Building project "modules.vcxproj" ended with an error. 18>------ Build started: project: worldserver, Configuration: RelWithDebInfo x64 ------ 18>Building Custom Rule C:/AzerothCoreBot/azerothcore-wotlk/src/server/apps/CMakeLists.txt 18>cmake_pch.cxx 18>Main.cpp 18>ACSoap.cpp 18>CliRunnable.cpp 18>RASession.cpp 18>WheatyExceptionReport.cpp 18>ServiceWin32.cpp 18>LINK : fatal error LNK1181: unable to open input file "......\modules\RelWithDebInfo\modules.lib" 18>Building project "worldserver.vcxproj" failed. 19>------ Build started: project: ALL_BUILD, Configuration: RelWithDebInfo x64 ------ 19>Building Custom Rule C:/AzerothCoreBot/azerothcore-wotlk/CMakeLists.txt ========== Build: success: 17, failure: 2, up to date: 0, skipped: 0==========
@xBarselonx Please ensure you are using up-to-date module. getThreatMgr method was recently changed to GetThreatMgr with capital letter, and the module has been updated to reflect this, but you are trying to compile a version with a lower-case method, so I think your code is out of date.
Actually I downloaded the source files from here https://github.com/ZhengPeiRu21/azerothcore-wotlk/tree/Playerbot. I am far from programming. Please explain what I need to do to compile azerothcore-wotlk version with bots using GetThreatMgr method?
15>Building project "modules.vcxproj" ended with an error. 18>------ Build started: project: worldserver, Configuration: RelWithDebInfo x64 ------ 18>Building Custom Rule C:/AzerothCoreBot/azerothcore-wotlk/src/server/apps/CMakeLists.txt 18>cmake_pch.cxx 18>Main.cpp 18>ACSoap.cpp 18>CliRunnable.cpp 18>RASession.cpp 18>WheatyExceptionReport.cpp 18>ServiceWin32.cpp 18>LINK : fatal error LNK1181: unable to open input file "......\modules\RelWithDebInfo\modules.lib" 18>Building project "worldserver.vcxproj" failed. 19>------ Build started: project: ALL_BUILD, Configuration: RelWithDebInfo x64 ------ 19>Building Custom Rule C:/AzerothCoreBot/azerothcore-wotlk/CMakeLists.txt ========== Build: success: 17, failure: 2, up to date: 0, skipped: 0==========
1- open git bash and use command: git clone -b Playerbot https://github.com/ZhengPeiRu21/azerothcore-wotlk.git 2- open git bash in azerothcore-wotlk/modules/ dir. and use command: git clone https://github.com/ZhengPeiRu21/mod-playerbots.git 3- run cmake, configure, generate, open project and compile. 4- enjoy
我也遇到: 已完成生成项目“modules.vcxproj”的操作 - 失败。 已完成生成项目“worldserver.vcxproj”的操作 - 失败。 的提示
@chachecete This issue should be resolved by now, please confirm and close out
15>Compilación del proyecto "modules.vcxproj" terminada -- ERROR. 18>------ Operación Compilar iniciada: Proyecto: worldserver, configuración: RelWithDebInfo x64 ------ 18>Building Custom Rule D:/Sources/azerothcore/src/server/apps/CMakeLists.txt 18>cmake_pch.cxx 18>Main.cpp 18>ACSoap.cpp 18>CliRunnable.cpp 18>RASession.cpp 18>WheatyExceptionReport.cpp 18>ServiceWin32.cpp 18>LINK : fatal error LNK1181: no se puede abrir el archivo de entrada '......\modules\RelWithDebInfo\modules.lib' 18>Compilación del proyecto "worldserver.vcxproj" terminada -- ERROR. 19>------ Operación Compilar iniciada: Proyecto: ALL_BUILD, configuración: RelWithDebInfo x64 ------ 19>Building Custom Rule D:/Sources/azerothcore/CMakeLists.txt ========== Compilación: 17 correctos, 2 dieron error, 0 actualizados, 0 omitidos ==========