I’m having trouble getting my game to launch on Android.
Using ndk-r9 and cocos2dx-2.1.4, eclipse project created using output from the generate project script.
I had to build with -Wno-error=format-security to get it to shut up about some stuff.
Stack trace: Build fingerprint: 'tmous/htc_ruby/ruby:4.0.3/IML74K/449991.30:user/release-keys' pid: 18728, tid: 18728 >>> MY_GAME <<< signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000 Stack frame #00 pc 0017dda8 /data/data/MY_GAME/lib/libgame.so: Routine GetEnv in /Users/Justin/Desktop/tools/android-ndk-r9/platforms/android-8/arch-arm/usr/include/jni.h:1077 Stack frame #01 pc 0017df3c /data/data/MY_GAME/lib/libgame.so (_ZN7cocos2d9JniHelper14jstring2stringEP8_jstring): Routine jstring2string_ in /Users/Justin/desktop/GAME/GAME/proj.android/../libs/cocos2dx/platform/android/jni/JniHelper.cpp:169 Stack frame #02 pc 0017d3ca /data/data/MY_GAME/lib/libgame.so (Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetApkPath): Routine Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetApkPath in /Users/Justin/Desktop/tools/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/basic_string.h:542 Stack frame #03 pc 0001fff0 /system/lib/libdvm.so (dvmPlatformInvoke) Stack frame #04 pc 0005b134 /system/lib/libdvm.so (_Z16dvmCallJNIMethodPKjP6JValuePK6MethodP6Thread)
I think it’s the part in bold. Can be reproduced on vanilla project.
I originally added that part instead of hard-coding the sources so it would be easier to manage folder hierarchy, but I guess it breaks stuff.