mod-playerbots icon indicating copy to clipboard operation
mod-playerbots copied to clipboard

MacOS Silicon build issues

Open rwzdoorn opened this issue 1 year ago • 3 comments

Hi,

I managed to get a few modules up and running, but this playerbot is giving errors when building. These are a couple of the issues:

In file included from /azerothcore/modules/mod-playerbots/src/ChatFilter.cpp:7: In file included from azerothcore/modules/mod-playerbots/src/Playerbots.h:11: azerothcore/modules/mod-playerbots/src/PlayerbotAI.h:187:5: error: expected identifier HUGE = 250 ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/math.h:733:15: note: expanded from macro 'HUGE' #define HUGE MAXFLOAT ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/math.h:704:21: note: expanded from macro 'MAXFLOAT' #define MAXFLOAT 0x1.fffffep+127f ^ In file included from azerothcore/modules/mod-playerbots/src/AiFactory.cpp:8: azerothcore/modules/mod-playerbots/src/PlayerbotAI.h:187:5: error: expected identifier HUGE = 250 ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/math.h:733:15: note: expanded from macro 'HUGE' #define HUGE MAXFLOAT ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/math.h:704:21: note: expanded from macro 'MAXFLOAT' #define MAXFLOAT 0x1.fffffep+127f ^

rwzdoorn avatar Dec 07 '23 18:12 rwzdoorn

I wonder if this module is looking for some M'x' CPU instructions that yours don't have, or maybe are different?! ie. the module works on M1 or M2 but not on M3 or pro versions

Maybe you can try through a Linux on VMware Fusion Player :)

Hope you'll have a reply soon

virgo77 avatar Dec 08 '23 15:12 virgo77

I wonder if this module is looking for some M'x' CPU instructions that yours don't have, or maybe are different?! ie. the module works on M1 or M2 but not on M3 or pro versions

I'm running a M2 Pro btw. I think I lack some instructions for this yes. Game works perfect with other modules.

rwzdoorn avatar Dec 09 '23 17:12 rwzdoorn

这个HUGE定义跟sdk里面的宏冲突了. 我试了13.3的也不行 This HUGE definition conflicts with a macro in the sdk.

wangchengyu avatar Dec 22 '23 07:12 wangchengyu