Hi Martin, sorry it is not clear in this e-mail thread. This is using the osgAndroidExampleGLES2. As far as I can tell, the plugins are correctly declared:
//Static plugins Macro USE_OSGPLUGIN(ive) USE_OSGPLUGIN(osg) USE_OSGPLUGIN(osg2) USE_OSGPLUGIN(terrain) USE_OSGPLUGIN(rgb) USE_OSGPLUGIN(OpenFlight) USE_OSGPLUGIN(dds) //Static DOTOSG USE_DOTOSGWRAPPER_LIBRARY(osg) USE_DOTOSGWRAPPER_LIBRARY(osgFX) USE_DOTOSGWRAPPER_LIBRARY(osgParticle) USE_DOTOSGWRAPPER_LIBRARY(osgTerrain) USE_DOTOSGWRAPPER_LIBRARY(osgText) USE_DOTOSGWRAPPER_LIBRARY(osgViewer) USE_DOTOSGWRAPPER_LIBRARY(osgVolume) //Static serializer USE_SERIALIZER_WRAPPER_LIBRARY(osg) USE_SERIALIZER_WRAPPER_LIBRARY(osgAnimation) USE_SERIALIZER_WRAPPER_LIBRARY(osgFX) USE_SERIALIZER_WRAPPER_LIBRARY(osgManipulator) USE_SERIALIZER_WRAPPER_LIBRARY(osgParticle) USE_SERIALIZER_WRAPPER_LIBRARY(osgTerrain) USE_SERIALIZER_WRAPPER_LIBRARY(osgText) USE_SERIALIZER_WRAPPER_LIBRARY(osgVolume) Cheers, Nathan ________________________________ From: osg-users [[email protected]] on behalf of Martin Siggel [[email protected]] Sent: 13 May 2014 06:55 To: OpenSceneGraph Users Subject: Re: [osg-users] Android osgPlugins Static libraries can't be loaded on runtime. You have to link them on compile time. In order to use the plugins as static libs, you must declare them like in the osgandroid examples ( see osgmainapp header file ) Cheers, Martin Am 09.05.2014 16:40 schrieb "Nathan Collins" <[email protected]<mailto:[email protected]>>: Hi all, I've got to this point again. I have built OSG and got the examples to run, but not load files. I'm getting the same issue from my original post: Code: 05-09 14:33:04.726: E/Osg Viewer(4848): There are 1 models to load 05-09 14:33:04.726: E/Osg Viewer(4848): Loading: /storage/emulated/0/osg/cow.osgt 05-09 14:33:04.731: D/Osg Viewer(4848): itr='/vendor/lib' 05-09 14:33:04.731: D/Osg Viewer(4848): FindFileInPath() : trying /vendor/lib/osgPlugins-3.3.1/osgdb_osg.so ... 05-09 14:33:04.731: D/Osg Viewer(4848): itr='/system/lib' 05-09 14:33:04.731: D/Osg Viewer(4848): FindFileInPath() : trying /system/lib/osgPlugins-3.3.1/osgdb_osg.so ... 05-09 14:33:04.731: D/Osg Viewer(4848): itr='/usr/lib/' 05-09 14:33:04.731: D/Osg Viewer(4848): FindFileInPath() : trying /usr/lib/osgPlugins-3.3.1/osgdb_osg.so ... 05-09 14:33:04.731: D/Osg Viewer(4848): itr='/usr/local/lib/' 05-09 14:33:04.731: D/Osg Viewer(4848): FindFileInPath() : trying /usr/local/lib/osgPlugins-3.3.1/osgdb_osg.so ... 05-09 14:33:04.731: D/Osg Viewer(4848): itr='/vendor/lib' 05-09 14:33:04.731: D/Osg Viewer(4848): FindFileInPath() : trying /vendor/lib/osgdb_osg.so ... 05-09 14:33:04.731: D/Osg Viewer(4848): itr='/system/lib' 05-09 14:33:04.731: D/Osg Viewer(4848): FindFileInPath() : trying /system/lib/osgdb_osg.so ... 05-09 14:33:04.731: D/Osg Viewer(4848): itr='/usr/lib/' 05-09 14:33:04.731: D/Osg Viewer(4848): FindFileInPath() : trying /usr/lib/osgdb_osg.so ... 05-09 14:33:04.731: D/Osg Viewer(4848): itr='/usr/local/lib/' 05-09 14:33:04.731: D/Osg Viewer(4848): FindFileInPath() : trying /usr/local/lib/osgdb_osg.so ... 05-09 14:33:04.731: I/Osg Viewer(4848): Warning: dynamic library 'osgPlugins-3.3.1/osgdb_osg.so' does not exist (or isn't readable): 05-09 14:33:04.731: I/Osg Viewer(4848): dlopen failed: library "osgPlugins-3.3.1/osgdb_osg.so" not found 05-09 14:33:04.731: I/Osg Viewer(4848): DynamicLibrary::failed loading "osgPlugins-3.3.1/osgdb_osg.so" 05-09 14:33:04.731: E/Osg Viewer(4848): Model not loaded I have built OSG with the relevant flags to make it static, however I've built it against gnustl_shared. Does anyone know if this is what is causing OSG to look for shared versions of osgbd_osg.so rather than a static osgdb_osg.a? I also noticed that it is not looking for libosgdb_osg.a. It was my understanding that the NDK toolchain prepends lib to all library names if it is not there. Thanks, Nathan.[/b] ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59336#59336 _______________________________________________ osg-users mailing list [email protected]<mailto:[email protected]> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

