Hi, I'm using eclipse and as long as the jni library is compiled is automatically copied and deployed within the APK. Sometimes I need to do a refresh of the projects (F5), to actually detect the changes and the compiled libraries.
In fact, reading the log the JNI library is corerctly loaded, the problem there should be that you don't have uploaded the model to the device. I haven't implemented a mechanism to read data from the assets. You can take a look at the code, and change it accordingly but the example expects the cessna.osg model in the directory: File externalStorage = Environment.getExternalStorageDirectory(); String path = externalStorage + "/osgAndroid/cessna.osg"; External storage usually is placed in /sdcard, but it depends on your device. Regards, Rafa. 2014-11-18 13:43 GMT+01:00 Julius Haertl <[email protected]>: > On Thu, Nov 13, 2014 at 05:51:00PM +0100, Rafa Gaitan wrote: > > Hi Julius, > > > > Seems that the ndk is not finding the libraries in the path. > > > > Are the generated .a files in this path? > > -L/home/jus/working/osg/osg/build_gles1/lib > > > > Is OSG generated with armeabi?, I think the ndk sets the armeabi-v7 > version > > by default, and osgAndroid is configured with armeabi in the > Application.mk > > maybe that is giving some troubles. > > > > Rafa. > > OK, now all the builds seem fine so far. I'm now trying to use the > osgsimple > example application. Do i need to copy libs from the > org.openscenegraph.android > project? Building of the example android app succeeded, but i get the > following > runtime errors. > > 11-18 13:35:34.280: D/dalvikvm(7238): Added shared lib > /data/app-lib/org.openscenegraph.osgsimple-1/libjniosg-gles1.so 0x42655be0 > 11-18 13:35:34.280: D/dalvikvm(7238): No JNI_OnLoad found in > /data/app-lib/org.openscenegraph.osgsimple-1/libjniosg-gles1.so 0x42655be0, > skipping init > ... > 11-18 13:35:34.300: I/org.openscenegraph.osg.viewer.JNIViewer(7238): > Warning: dynamic library 'osgPlugins-3.3.3/osgdb_osg.so' does not exist (or > isn't readable): > 11-18 13:35:34.300: I/org.openscenegraph.osg.viewer.JNIViewer(7238): > dlopen failed: library "osgPlugins-3.3.3/osgdb_osg.so" not found > 11-18 13:35:34.300: I/org.openscenegraph.osg.viewer.JNIViewer(7238): > DynamicLibrary::failed loading "osgPlugins-3.3.3/osgdb_osg.so" > 11-18 13:35:34.300: E/org.openscenegraph.osg.db.JNIosgDB(7238): Error > loading scene > ... > 11-18 13:35:34.310: E/AndroidRuntime(7238): FATAL EXCEPTION: main > 11-18 13:35:34.310: E/AndroidRuntime(7238): Process: > org.openscenegraph.osgsimple, PID: 7238 > 11-18 13:35:34.310: E/AndroidRuntime(7238): java.lang.RuntimeException: > Unable to start activity > ComponentInfo{org.openscenegraph.osgsimple/org.openscenegraph.osgsimple.OSGActivity}: > java.lang.NullPointerException: println needs a message > > Thanks a lot, > Julius > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Rafael Gaitán Linares CTO at Mirage Technologies S.L - http://www.mirage-tech.com
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

