ZhengPeiRu21 / mod-playerbots

AzerothCore Playerbots Module
MIT License
194 stars 95 forks source link

ubuntu-22.04.4 compile mod-eluna and mod-playerbots error #227

Open nolemlin opened 4 months ago

nolemlin commented 4 months ago

hi, i get source form your google video https://www.youtube.com/watch?v=qXtc3O4eKuc

  1. git clone https://github.com/najoast/acore-playerbots.git 2.cd modules
  2. git clone https://github.com/najoast/mod-eluna.git
  3. git clone https://github.com/najoast/mod-playerbots.git
  4. cd ../build
  5. cmake ../ -DCMAKE_INSTALL_PREFIX=$HOME/azeroth-server/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DTOOLS_BUILD=all -DSCRIPTS=static -DMODULES=static 7.make -j 4

---as compile result [ 75%] Built target game make: *** [Makefile:136: all] Error 2

--error in compile list

[ 47%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Northrend/FrozenHalls/PitOfSaron/pit_of_saron.cpp.o 4 warnings generated. [ 47%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Northrend/IcecrownCitadel/boss_blood_queen_lana_thel.cpp.o /wow/robot/acore-playerbots/modules/mod-playerbots/src/ChatFilter.cpp:166:47: fatal error: no member named 'GetTargetIcon' in 'Group' ObjectGuid rtiTarget = group->GetTargetIcon(RtiTargetValue::GetRtiIndex(rti.substr(1)));


1 error generated.
make[2]: *** [modules/CMakeFiles/modules.dir/build.make:846: modules/CMakeFiles/modules.dir/mod-playerbots/src/ChatFilter.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1362: modules/CMakeFiles/modules.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
codynottltd commented 4 months ago

It looks like you are using some random dudes forks of this project that are way behind, You should use the repos provided here and compile again. That includes getting mod-eluna from the original repo.