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]>:

> 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]
> 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

Reply via email to