<div dir="ltr">Hello Christian,<div class="gmail_extra"><br><div class="gmail_quote">2015-05-27 23:43 GMT+02:00 Christian Kehl <span dir="ltr"><<a href="mailto:christian-kehl@web.de" target="_blank">christian-kehl@web.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">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 ?<br></blockquote><div><br></div><div>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.</div><div><br></div><div>If you unzip the generated org.openscenegraph.osgsimple.apk you'll see that the libraries are there:</div><div><br></div>Archive:  ../org.openscenegraph.osgsimple.apk<br>  inflating: AndroidManifest.xml     <br> extracting: res/drawable-hdpi-v4/icon.png  <br> extracting: res/drawable-hdpi-v4/osg.png  <br> extracting: res/drawable-ldpi-v4/icon.png  <br> extracting: res/drawable-ldpi-v4/osg.png  <br> extracting: res/drawable-mdpi-v4/icon.png  <br> extracting: res/drawable-mdpi-v4/osg.png  <br> extracting: resources.arsc          <br>  inflating: classes.dex             <br>  inflating: lib/armeabi/libgnustl_shared.so  <br>  inflating: lib/armeabi/libjniosg-gles1.so  <br>  inflating: lib/armeabi/libjniosg-gles2.so  <br>  inflating: META-INF/MANIFEST.MF    <br>  inflating: META-INF/CERT.SF        <br>  inflating: META-INF/CERT.RSA<div> </div><div>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.</div><div><br></div><div>After that, the osgsimple activity calls to  Library.initLibrary("gles1"); which loads libjni-gles1.so library.</div><div><br></div><div>Regards,</div><div>Rafa.</div><div><br></div>







<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><br>
Cheers,<br>
Christian<br>
<br>
------------------<br>
Read this topic online here:<br>
</span><a href="http://forum.openscenegraph.org/viewtopic.php?p=63843#63843" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=63843#63843</a><br>
<div class=""><div class="h5"><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Rafael Gaitán Linares<br>CTO at Mirage Technologies S.L - <a href="http://www.mirage-tech.com" target="_blank">http://www.mirage-tech.com</a><br></div></div>
</div></div>