AzerothCore 未能添加模组(ModulesLoader.cpp 未定义对 `Addmod_$NAME_masterScripts()` 的引用)
AzerothCore failing to add mods (ModulesLoader.cpp undefined reference to `Addmod_$NAME_masterScripts()` )
我似乎无法通过 AzerothCore 获得 link 的模组。
我正在 运行构建一个新版本(今天拉),它似乎工作正常(构建后我可以连接并玩游戏)。
当我运行./acore.sh docker build
:
他们看起来还不错:
Scanning dependencies of target modules
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/gen_scriptloader/static/ModulesLoader.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-ah-bot-master/src/AuctionHouseBot.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-ah-bot-master/src/AuctionHouseBotScript.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-ah-bot-master/src/ah_bot_loader.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-xp-master/src/Individual_XP.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-gain-honor-guard-master/src/GHG_loader.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-ah-bot-master/src/cs_ah_bot.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-gain-honor-guard-master/src/GainHonorGuard.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-xp-master/src/IXP_loader.cpp.o
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-solocraft-master/src/SC_loader.cpp.o
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-solocraft-master/src/Solocraft.cpp.o
[ 20%] Linking CXX static library libmodules.a
[ 20%] Built target modules
但是当我到达 linking:
/usr/bin/ld: ../../../modules/libmodules.a(ModulesLoader.cpp.o): in function `AddModulesScripts()':
/azerothcore/var/build/obj/modules/gen_scriptloader/static/ModulesLoader.cpp:56: undefined reference to `Addmod_ah_bot_masterScripts()'
/usr/bin/ld: /azerothcore/var/build/obj/modules/gen_scriptloader/static/ModulesLoader.cpp:57: undefined reference to `Addmod_gain_honor_guard_masterScripts()'
/usr/bin/ld: /azerothcore/var/build/obj/modules/gen_scriptloader/static/ModulesLoader.cpp:58: undefined reference to `Addmod_individual_xp_masterScripts()'
/usr/bin/ld: /azerothcore/var/build/obj/modules/gen_scriptloader/static/ModulesLoader.cpp:59: undefined reference to `Addmod_solocraft_masterScripts()'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/build.make:175: src/server/worldserver/worldserver] Error 1
make[1]: *** [CMakeFiles/Makefile2:1181: src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
我很困惑可能出了什么问题。我从网站上得到了模组,他们都说他们目前正在通过 CI。由于所有这些都失败了(而不仅仅是一个),我认为这是我做错了什么。
我也试过 ./acore.sh docker clean:build
然后 ./acore.sh docker build
但这并没有改变任何东西。
从文件夹名称中删除“-master”
我似乎无法通过 AzerothCore 获得 link 的模组。
我正在 运行构建一个新版本(今天拉),它似乎工作正常(构建后我可以连接并玩游戏)。
当我运行./acore.sh docker build
:
他们看起来还不错:
Scanning dependencies of target modules
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/gen_scriptloader/static/ModulesLoader.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-ah-bot-master/src/AuctionHouseBot.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-ah-bot-master/src/AuctionHouseBotScript.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-ah-bot-master/src/ah_bot_loader.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-xp-master/src/Individual_XP.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-gain-honor-guard-master/src/GHG_loader.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-ah-bot-master/src/cs_ah_bot.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-gain-honor-guard-master/src/GainHonorGuard.cpp.o
[ 19%] Building CXX object modules/CMakeFiles/modules.dir/mod-individual-xp-master/src/IXP_loader.cpp.o
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-solocraft-master/src/SC_loader.cpp.o
[ 20%] Building CXX object modules/CMakeFiles/modules.dir/mod-solocraft-master/src/Solocraft.cpp.o
[ 20%] Linking CXX static library libmodules.a
[ 20%] Built target modules
但是当我到达 linking:
/usr/bin/ld: ../../../modules/libmodules.a(ModulesLoader.cpp.o): in function `AddModulesScripts()':
/azerothcore/var/build/obj/modules/gen_scriptloader/static/ModulesLoader.cpp:56: undefined reference to `Addmod_ah_bot_masterScripts()'
/usr/bin/ld: /azerothcore/var/build/obj/modules/gen_scriptloader/static/ModulesLoader.cpp:57: undefined reference to `Addmod_gain_honor_guard_masterScripts()'
/usr/bin/ld: /azerothcore/var/build/obj/modules/gen_scriptloader/static/ModulesLoader.cpp:58: undefined reference to `Addmod_individual_xp_masterScripts()'
/usr/bin/ld: /azerothcore/var/build/obj/modules/gen_scriptloader/static/ModulesLoader.cpp:59: undefined reference to `Addmod_solocraft_masterScripts()'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/build.make:175: src/server/worldserver/worldserver] Error 1
make[1]: *** [CMakeFiles/Makefile2:1181: src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
我很困惑可能出了什么问题。我从网站上得到了模组,他们都说他们目前正在通过 CI。由于所有这些都失败了(而不仅仅是一个),我认为这是我做错了什么。
我也试过 ./acore.sh docker clean:build
然后 ./acore.sh docker build
但这并没有改变任何东西。
从文件夹名称中删除“-master”