mod-playerbots
mod-playerbots copied to clipboard
MacOS Silicon build issues
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 ^
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
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.
这个HUGE定义跟sdk里面的宏冲突了. 我试了13.3的也不行 This HUGE definition conflicts with a macro in the sdk.