64Bit Version for AndEngine

819 Views Asked by At

I have to provide a 64 Bit Version of my Android Game which is using AndEngine in Google Play Store. The offical github repo of AndEngine doesn´t provide a 64 bit version of the library. Does anyone have an idea how to convert the library to 64 bit? I tried to add the following:

APP_ABI := armeabi-v7a x86 x86_64 arm64-v8a

line to the "Application.mk" File and ran build.sh. Unfortunately without success.

Did anyone successfully build a 64 Bit Version AndEngine?

2

There are 2 best solutions below

0
Jonny Right On BEST ANSWER

I got the the "build.sh" running and rebuild the native files. I uploaded the updated AndEngine which includes the 64bit native .so files to my github account.

AndEngine:

https://github.com/jonnyright/AndEngine

AndEngine Box2D extension:

https://github.com/jonnyright/AndEnginePhysicsBox2DExtension

2
ashakirov On

Andengine libandengine.so file contains just 2 classes GLES20Fix and BufferUtils , here they are. Here are java classes GLES20Fix.java and BufferUtils.java which call classes from libandengine.so. As you can see from java source code and comments C-classes contains workarounds for system bugs 11078, 16941, 8931 which were in Android 2.2 (froyo), Android 3.0 (honeycomb) and Android 3.2 (honeycomb_mr2).

So, if you don't support android 2.x and 3.x devices you should just delete all libandengine.so files from your project. We did so with our project about year ago, everything works ok.