<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 13, 2015 at 11:16 AM, Christian Kehl <span dir="ltr"><<a href="mailto:Christian.Kehl@uni.no" target="_blank">Christian.Kehl@uni.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jordi,<br>
<br>
I encounter the same problem in the same situation. I've build OSG for<br>
Android in static mode (only way it even compiles), all static libraries<br>
(for me: .a-files) are in my local installation folder, together with the<br>
libraries for armeabi and armeabi-v7a from the Android Native Developer Kit.<br>
It compiles fine, I can change the background of the viewer without<br>
problems, but it just doesn't wanna load the models. I get the same logcat<br>
messages as mentioned before (not finding the plugins). I, up until now,<br>
loaded files from the internal HDD of the phone (I am on Nexus 5), but today<br>
also try out the sdcard as source. Are there any suggestions how to solve<br>
the problem ?<br>
<div class=""><div class="h5"><br></div></div></blockquote><div><br><br></div></div>Did you:<br><br></div><div class="gmail_extra">a) Link the plugins into your JNI code? This is needed because the libraries are static, thus it cannot load them dynamically at runtime. It is a workaround for complicated deployment on Android. <br><br></div><div class="gmail_extra">b) Declared which plugins you are using? Again, this is linked to the point above, because the plugin registration has to be done at compile time when using static linking. Make sure that you have something like this in your code (add/remove the plugins you need/don't need):<br><br><br>//Static plugins Macro<br>USE_OSGPLUGIN(ive)<br>USE_OSGPLUGIN(osg)<br>USE_OSGPLUGIN(osg2)<br>USE_OSGPLUGIN(freetype)<br>//USE_OSGPLUGIN(terrain)<br>USE_OSGPLUGIN(rgb)<br>//USE_OSGPLUGIN(OpenFlight)<br>//USE_OSGPLUGIN(dds)<br><br>//Static DOTOSG<br>USE_DOTOSGWRAPPER_LIBRARY(osg)<br>//USE_DOTOSGWRAPPER_LIBRARY(osgFX)<br>//USE_DOTOSGWRAPPER_LIBRARY(osgParticle)<br>//USE_DOTOSGWRAPPER_LIBRARY(osgTerrain)<br>USE_DOTOSGWRAPPER_LIBRARY(osgText)<br>USE_DOTOSGWRAPPER_LIBRARY(osgAnimation)<br>//USE_DOTOSGWRAPPER_LIBRARY(osgViewer)<br>//USE_DOTOSGWRAPPER_LIBRARY(osgVolume)<br><br>//Static serializer<br>USE_SERIALIZER_WRAPPER_LIBRARY(osg)<br>USE_SERIALIZER_WRAPPER_LIBRARY(osgAnimation)<br>//USE_SERIALIZER_WRAPPER_LIBRARY(osgFX)<br>USE_SERIALIZER_WRAPPER_LIBRARY(osgManipulator)<br>//USE_SERIALIZER_WRAPPER_LIBRARY(osgParticle)<br>//USE_SERIALIZER_WRAPPER_LIBRARY(osgTerrain)<br>USE_SERIALIZER_WRAPPER_LIBRARY(osgText)<br>//USE_SERIALIZER_WRAPPER_LIBRARY(osgVolume)<br><br></div><div class="gmail_extra">Without this sort of declaration and the corresponding linking statement it will not work when built as a fully static library. <br><br></div><div class="gmail_extra">J.<br></div><div class="gmail_extra"><br><br></div><div class="gmail_extra"><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div></div>