How to compile the cmangos on Android phone?


#1

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?


#2

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.


#3


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


#4

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?


#5

— 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

endif

+# elif defined(aarch64)

  •    // CDECL does not apply to arm.
    

+# define __cdecl

endif // calling conventions


#7

send to my email zhangxinmrs@gmail.com, I will explain to you


#8

I did success,here is the patch:


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