How to compile the cmangos on Android phone?


Did it possible?Android chroot env,debian9,
snapdragon 625 8core 2.0Ghz,4GB ROM,64GB RAM,I think the hardware is sufficient to support it.
And i’ve compiled the cmangos classic,but the g3dlite part sames did’t work for arm or some else i did wrong?


the better is to try it yourself and report back your result. Nothing was done on that way in as i know of. It work with some patch on raspberry though.


I know the patch for RaspberryPi,It seems different from mine.
cmangos cant submit issue,so i need some help,thanks.


I found this from bing

ARM is currently not supported due to a restriction with the third party library g3dlite used by cmangos for its vector arithmetic functionality.

that is the reason?


— a/dep/include/g3dlite/G3D/platform.h
+++ b/dep/include/g3dlite/G3D/platform.h
@@ -270,6 +270,10 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) {\

ifndef __stdcall

define __stdcall


+# elif defined(aarch64)

  •    // CDECL does not apply to arm.

+# define __cdecl

endif // calling conventions


send to my email, I will explain to you


I did success,here is the patch:

thanks for your help.
The original arm does not support __cdecl, so __stdcall is used.