error: relocation overflow in R_ARM_THM_CALL

[armeabi] SharedLibrary : libcocos2dlua.so
/tmp/ndk-user/tmp/gnu-libstdc++/static-armeabithumb-4.8/include/ext/atomicity.h:49: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/gnu-libstdc++/static-armeabithumb-4.8/include/bits/basic_string.h:249: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/gnu-libstdc++/static-armeabithumb-4.8/include/ext/atomicity.h:49: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/gnu-libstdc++/static-armeabithumb-4.8/include/bits/basic_string.h:249: error: relocation overflow in R_ARM_THM_CALL
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [obj/local/armeabi/libcocos2dlua.so] Error 1

使用 cocos compile -p android --ap android-19 -m release
debug版本没问题,release会报这个错。我已经在Application.mk 文件中加入了 USE_ARM_MODE := 1

环境是cocos2dx 3.12 android-ndk-r10d

我看了很多论坛的帖子,都是没有给出解决方法
在线急等

@minggo 帮忙看看 多谢

问题解决了,
frameworks/cocos2d-x/cocos/scripting/lua-bindings/proj.android/Android.mk
这个文件分两部分,需要在两个部分都加上
ifeq ($(USE_ARM_MODE),1)
LOCAL_ARM_MODE := arm
endif

那个只是一个方案,最简单的方案是,在 Application 文件里 加 两个宏
COCOS_SIMULATOR_BUILD := 1
USE_ARM_MODE := 1

希望能帮到后来者