Hi,
EDIT #1:
so I forgot to run the build_native.sh script, but I still have a small issue “please define NDK_ROOT”, I have already defined it in Eclipse Preferences, where else should I specify it?
[[ previously :
I have just downloaded Cocos2dx, along with Eclipse for Mobile Developers, the Android SDK, and the NDK. I am using Mac Lion 10.7.4, and I have followed this tutorial to install cocos2d-x : http://www.raywenderlich.com/11283/cocos2d-x-for-ios-and-android-getting-started
I also changed the java build path to avoid any errors, such as recommended on the forum with $COCOS2DX_ROOT(myPathHere)/cocos2dx/platform/android/java/src/ (http://www.raywenderlich.com/forums/viewtopic.php?f=20&t=3287&start=50)
Now, I haven’t got any error at the beginning, but when I run the sample project for my 4.0.4 mobile (Alcatel One Touch 997), it says :
04-22 22:19:09.079: E/AndroidRuntime(14321): Caused by: java.lang.UnsatisfiedLinkError: Couldn’t load game: findLibrary returned null
04-22 22:19:09.079: E/AndroidRuntime(14321): at java.lang.Runtime.loadLibrary(Runtime.java:365)
04-22 22:19:09.079: E/AndroidRuntime(14321): at java.lang.System.loadLibrary(System.java:535)
04-22 22:19:09.079: E/AndroidRuntime(14321): at com.first.cocos2dx.samplecocos2dxandroid.(samplecocos2dxandroid.java:37)
and a bit before :
04-22 23:13:11.635: W/dalvikvm(14876): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/first/cocos2dx/samplecocos2dxandroid;
04-22 23:13:11.635: W/dalvikvm(14876): Class init failed in newInstance call (Lcom/first/cocos2dx/samplecocos2dxandroid;)
04-22 23:13:11.635: D/AndroidRuntime(14876): Shutting down VM
04-22 23:13:11.635: W/dalvikvm(14876): threadid=1: thread exiting with uncaught exception (group=0x40f60258)
04-22 23:13:11.638: E/AndroidRuntime(14876): FATAL EXCEPTION: main
>
The NDK path was well written in : cocos2d-x/create-android-project.sh :
# set environment paramters
NDK_ROOT_LOCAL=“/Users/Empon/android-ndk” #r8e
ANDROID_SDK_ROOT_LOCAL=“/Users/Empon/android”
Could you help me?
I am confused with this error just appearing when I run the app, and not when I start Eclipse.
Thanks a lot
EDIT:
I don’t have anything below “libs”, is it normal?
]]
libs.png (28.8 KB)