The build succeeds but the app crashes

hi,

I’m having the next errors:

E/AndroidRuntime(20743): Caused by: java.lang.UnsatisfiedLinkError: Couldn’t load OFAndroidApp: findLibrary returned null
E/AndroidRuntime(20743): at java.lang.Runtime.loadLibrary(Runtime.java:425)
E/AndroidRuntime(20743): at java.lang.System.loadLibrary(System.java:554)
E/AndroidRuntime(20743): at cc.openframeworks.OFAndroid.(OFAndroid.java:535)
E/AndroidRuntime(20743): … 14 more

In the OF Android eclipse steps says:

“Check the libs folder. It should be populated with a library during the build”

I checked the libs folder, and was populated with a folder named obj, but I’m still having the errors above.

I’m using Mac OS X 10.7.3 and Eclipse IDE for C/C++ Developers Version: Juno Release
Build id: 20120614-1722

What is wrong?

thanks in advance,

Is this using an example, or your own app?

If your own app, do the examples work?

Anyone find the solution to this?

I have the same issue, using an example app. I had ofxAndroid working fine with OF 007…but seems to crash right away with 0071… Any ideas?

Thanks,
Matt

Ok, got it. I had 2 issues:

  1. I had to add in “libs/fmodex” to 0071 (i copied it over from 007).

  2. I just downloaded the latest SDK instead of following the link in the setup instructions. Dumb. Some of the paths changed. If you want to use “android-ndk-r8b” instead of “android-ndk-r8” (notice the b), then you have to change all update “/libs/openFrameworksCompiled/project/makefileCommon/Makefile.android”

Change all references to:

cxx-stl/gnu-libstdc++/

into:

cxx-stl/gnu-libstdc++/4.4.3/

Those 2 things fixed it for me.

Matt

Hi.

I had the same issue with libs/fmodex. It was missing and I had to copy it from 007.
Why isn’t it included on 0071?

I’m trying to run the examples on Android.

I’m using Mac OSX + Eclipse Juno C++

What NDK version are you using?