Hello Christian,
2015-05-27 23:43 GMT+02:00 Christian Kehl <[email protected]>:
> I went through the build process again and have to correct: osgAndroid
> already comes with a jar-file. What the project and its ndk-build does is
> to generate a libjniosg-gles1.so file that links to the static c++
> libraries. HENCE, my question would be now how the pre-compiled
> org.openscenegraph.android.jar refers/links to the libjniosg.so file,
> because I suspect this seems to be the step that goes wrong in my case. Any
> hints how that works ?
>
In eclipse, all the projects have as dependency the
org.openscenegraph.android project. So, just running into the device the
osgsimple example, should deploy properly the library.
If you unzip the generated org.openscenegraph.osgsimple.apk you'll see that
the libraries are there:
Archive: ../org.openscenegraph.osgsimple.apk
inflating: AndroidManifest.xml
extracting: res/drawable-hdpi-v4/icon.png
extracting: res/drawable-hdpi-v4/osg.png
extracting: res/drawable-ldpi-v4/icon.png
extracting: res/drawable-ldpi-v4/osg.png
extracting: res/drawable-mdpi-v4/icon.png
extracting: res/drawable-mdpi-v4/osg.png
extracting: resources.arsc
inflating: classes.dex
inflating: lib/armeabi/libgnustl_shared.so
inflating: lib/armeabi/libjniosg-gles1.so
inflating: lib/armeabi/libjniosg-gles2.so
inflating: META-INF/MANIFEST.MF
inflating: META-INF/CERT.SF
inflating: META-INF/CERT.RSA
As far as I know is the ADT plugin of eclipse the one doing the magic
generating and embedding all the dependencies in the same apk.
After that, the osgsimple activity calls to Library.initLibrary("gles1");
which loads libjni-gles1.so library.
Regards,
Rafa.
> Cheers,
> Christian
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=63843#63843
>
>
>
>
>
> _______________________________________________
> 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