<div dir="ltr">Hi,<div><br></div><div>If you built OSG in static, then the osgsimple sample should load properly the cessna model without worry about that message. OSG usually use the dynamic loading of the plugins and always emits that message even in static if the "dynamic" plugins is not found, anyway osgandroid preconfigures some of the required plugins in  the JNIosgDB.cpp filename using the macro USE_OSGPLUGIN.</div><div><br></div><div>If it's not working, maybe is something related to how you compiled OSG, or maybe your device has multiple external storages and the sample didn't found the model in the expected path.<br></div><div><br></div><div>My build configuration for osg was:</div><div>







<p class=""><span class="">cmake .. -DANDROID_NDK=/Users/rgaitan/Projects/android/android-ndk-r10c/ -DCMAKE_TOOLCHAIN_FILE=../PlatformSpecifics/Android/android.toolchain.cmake           -DOPENGL_PROFILE="GLES1" -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF          -DANDROID_NATIVE_API_LEVEL=15          -DANDROID_ABI=armeabi -DCMAKE_INSTALL_PREFIX=/Users/rgaitan/Projects/OSG/osg-trunk-android-static-gles1-sdk/</span></p></div><div>I hope you make it work soon :)</div><div><br></div><div>Regards,</div><div>Rafa.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-30 18:58 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
So, I needed to uncomment my submitted fix in GLDefines again, but with that, I actually made it through the compilation (yeaha).<br>
<br>
Now, it generates the jar, I start osgSimple (I also created the osgAndroid folder on the phone and put the cessna in it) - buuut: the ap doesn't find the compiled library .a-files:<br>
<br>
(eclipse report)<br>
04-30 18:50:05.218: I/OpenSceneGraph-Android Library(11567): Successfully initialized<br>
04-30 18:50:05.226: I/org.openscenegraph.osg.viewer.JNIViewer(11567): CullSettings::readEnvironmentalVariables()<br>
04-30 18:50:05.226: I/org.openscenegraph.osg.viewer.JNIViewer(11567): CullSettings::readEnvironmentalVariables()<br>
04-30 18:50:05.226: I/org.openscenegraph.osg.viewer.JNIViewer(11567): CullSettings::readEnvironmentalVariables()<br>
04-30 18:50:05.226: I/org.openscenegraph.osg.viewer.JNIViewer(11567): CullSettings::readEnvironmentalVariables()<br>
04-30 18:50:05.226: I/org.openscenegraph.osg.viewer.JNIViewer(11567): CullSettings::readEnvironmentalVariables()<br>
04-30 18:50:05.226: I/org.openscenegraph.osg.viewer.JNIViewer(11567): ShaderComposer::ShaderComposer() 0x70513830<br>
04-30 18:50:05.226: I/org.openscenegraph.osg.viewer.JNIViewer(11567): ShaderComposer::ShaderComposer() 0x70513ba0<br>
04-30 18:50:05.227: I/org.openscenegraph.osg.viewer.JNIViewer(11567): View::setSceneData() Reusing existing scene0x70526418<br>
04-30 18:50:05.227: I/org.openscenegraph.osg.viewer.JNIViewer(11567): OSG Version:3.3.8<br>
04-30 18:50:05.227: I/org.openscenegraph.osg.viewer.JNIViewer(11567): CullSettings::readEnvironmentalVariables()<br>
04-30 18:50:05.227: I/org.openscenegraph.osg.viewer.JNIViewer(11567): CullSettings::readEnvironmentalVariables()<br>
04-30 18:50:05.227: I/org.openscenegraph.osg.viewer.JNIViewer(11567): CullSettings::readEnvironmentalVariables()<br>
04-30 18:50:05.227: I/org.openscenegraph.osg.viewer.JNIViewer(11567): CullSettings::readEnvironmentalVariables()<br>
04-30 18:50:05.227: I/org.openscenegraph.osg.viewer.JNIViewer(11567): CullSettings::readEnvironmentalVariables()<br>
04-30 18:50:05.227: I/org.openscenegraph.osg.viewer.JNIViewer(11567): ShaderComposer::ShaderComposer() 0x70513f60<br>
04-30 18:50:05.227: I/org.openscenegraph.osg.viewer.JNIViewer(11567): ShaderComposer::ShaderComposer() 0x70529330<br>
04-30 18:50:05.650: I/org.openscenegraph.osg.viewer.JNIViewer(11567): Warning: dynamic library 'osgPlugins-3.3.8/osgdb_osg.so' does not exist (or isn't readable):<br>
04-30 18:50:05.650: I/org.openscenegraph.osg.viewer.JNIViewer(11567): dlopen failed: library "osgPlugins-3.3.8/osgdb_osg.so" not found<br>
04-30 18:50:05.650: I/org.openscenegraph.osg.viewer.JNIViewer(11567): DynamicLibrary::failed loading "osgPlugins-3.3.8/osgdb_osg.so"<br>
04-30 18:50:05.650: W/org.openscenegraph.osg.viewer.JNIViewer(11567): No data loaded<br>
04-30 18:50:05.650: E/org.openscenegraph.osg.db.JNIosgDB(11567): Error loading scene<br>
04-30 18:50:05.650: W/OSGActivity(11567): Attempt to invoke virtual method 'long org.openscenegraph.osg.core.Node.getNativePtr()' on a null object reference<br>
04-30 18:50:05.658: D/OpenGLRenderer(11567): Render dirty regions requested: true<br>
04-30 18:50:05.660: D/Atlas(11567): Validating map...<br>
04-30 18:50:05.709: D/NvOsDebugPrintf(11567): NvRmPrivGetChipPlatform: Could not read platform information<br>
04-30 18:50:05.709: D/NvOsDebugPrintf(11567): Expected on kernels without fuse support, using silicon<br>
04-30 18:50:05.730: I/OpenGLRenderer(11567): Initialized EGL, version 1.4<br>
04-30 18:50:05.781: D/OpenGLRenderer(11567): Enabling debug mode 0<br>
04-30 18:50:05.930: V/RenderScript(11567): Application requested CPU execution<br>
04-30 18:50:05.934: V/RenderScript(11567): 0x789cae00 Launching thread(s), CPUs 4<br>
<br>
where do I have to copy the osgPlugins-3.3.8 folder to so to make that all work ?<br>
<br>
I'm already quite happy it made it through the compilation - nice effort guys!<br>
<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=63589#63589" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=63589#63589</a><br>
<div class="HOEnZb"><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>