ZhengPeiRu21 / mod-playerbots

AzerothCore Playerbots Module
MIT License
194 stars 93 forks source link

mod-playerbots / [docker] compile error #111

Closed Nazgile94 closed 11 months ago

Nazgile94 commented 1 year ago

Hi, facing some troubles while compiling :/ ((DOCKER VERSION))

reproduce:

git clone https://github.com/ZhengPeiRu21/azerothcore-wotlk cd azerothcore-wotlk/modules git clone https://github.com/ZhengPeiRu21/mod-playerbots.git cd .. sudo ./acore.sh docker client-data

sudo ./acore.sh docker build

It compiles a while until i get some strange compile errors - without the module, all works fine :( - 100% build and can start / play.

Ubuntu 22.XX

https://pastebin.com/fzcXkWxN

htc16 commented 1 year ago

as far as I know azerothcore still doesn't compile on Ubuntu 22+

Nazgile94 commented 1 year ago

im using docker - so it compiles inside docker envoriment - works fine without module (100% - server runs smooth as hell) but facing errors if add module to module folder /didnt compile 100%

--dockerfiles uses ubuntu 20.XX :)

htc16 commented 1 year ago

try docker with Ubuntu 21.04, I think you will have more chances.

Nazgile94 commented 1 year ago

quick created a ubuntu 21.04 vm - installed docker / compose - pulled - same issue -> nothing to do with ubuntu 22 as docker host, the compile envoriment is ubuntu 20 inside the dockerfile - as i said -> without the module, it compiles just fine, no issue, no trouble, no error -> just if i add the module at the "[ 73%] Built target scripts" part

:(

/azerothcore/modules/mod-playerbots/src/RandomItemMgr.h:20:6: fatal error: enumeration previously declared with nonfixed underlying type enum EquipmentSlots : uint32;

/azerothcore/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)));

that are the 2 FATAL ERRORS for example log.txt

ZhengPeiRu21 commented 1 year ago

Please ensure you are using the Playerbots branch of the AzerothCore fork.

Nazgile94 commented 1 year ago

git clone https://github.com/ZhengPeiRu21/azerothcore-wotlk

Thats the correct one - isnt?

Like Post #1 i git cloned this :( And used acore.sh Docker Build

Kron4ek commented 1 year ago

This is the correct repo, but you also need to select the Playerbot branch.

git clone https://github.com/ZhengPeiRu21/azerothcore-wotlk -b Playerbot
Nazgile94 commented 1 year ago

Omg

I will try After work

Omg ... sry - Didnt Trinked about the Branch - i will try and let know if this will fix my issue Thank you !

Nazgile94 commented 1 year ago

ok pulled the playerbot branch -

now this error occure:

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package): Could not find a package configuration file provided by "boost_thread" (requested version 1.71.0) with any of the following names:

boost_threadConfig.cmake
boost_thread-config.cmake

Add the installation prefix of "boost_thread" to CMAKE_PREFIX_PATH or set "boost_thread_DIR" to a directory containing one of the above files. If "boost_thread" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component) /usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package) deps/boost/CMakeLists.txt:35 (find_package)

-- Configuring incomplete, errors occurred! See also "/azerothcore/var/build/obj/CMakeFiles/CMakeOutput.log".

Textdokument (neu).txt

any way to fix this ?=3 ty <3

Nazgile94 commented 1 year ago

https://github.com/ZhengPeiRu21/mod-playerbots/issues/97

got it :)

Dreathean commented 11 months ago

@Nazgile94 Are you still experiencing this issue? If not please close this out