Support for 64bit on cocos2d-js on Android

Support for 64bit on cocos2d-js on Android
0

#1

Hi All.
I used cocos2djs 3.16 for my game.
i received email from google about support for 64bit on android app.
i viewed this post: https://discuss.cocos2d-x.org/t/critical-support-for-64bit-on-cocos2d-x-on-android/45516
and edit my app:
In Application.mk:
APP_ABI := armeabi-v7a arm64-v8a

And in gradle properties:
PROP_APP_ABI=armeabi-v7a:arm64-v8a
Build fail with logs:
[arm64-v8a] Compile++ : audioengine_static <= mp3reader.cpp
/frameworks/cocos2d-x/cocos/audio/android/mp3reader.cpp: In function ‘bool resync(mp3_callbacks*, void*, uint32_t, off64_t*, uint32_t*)’:
/frameworks/cocos2d-x/cocos/audio/android/mp3reader.cpp:229:43: error: ‘memcmp’ was not declared in this scope
if (memcmp(“ID3”, id3header, 3)) {
^
/frameworks/cocos2d-x/cocos/audio/android/mp3reader.cpp:274:48: error: ‘memcpy’ was not declared in this scope
memcpy(buf, tmp, remainingBytes);
^
make: *** [/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/arm64-v8a/objs/audioengine_static/mp3reader.o] Error 1
make: *** Waiting for unfinished jobs…

before i build successfull with config
In Application.mk:
APP_ABI := armeabi

And in gradle properties:
PROP_APP_ABI=armeabi

anyone help me about it!
Thanks alot!


#2

Hi,

Is it possible to you to update to cocos 3.17.1 ?
It works ok in 3.17.1