[osg-users] Android osgPlugins

Jan Ciger jan.ciger at gmail.com
Mon May 25 09:30:58 PDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/25/2015 11:10 AM, Christian Kehl wrote:
> Hi,
> 
> I still didn't get it to work. I spoke with an Android developer
> the recent days, told him the problem. His suggestion: move the
> requested library files in the libs-folder of your project, which
> is how the Android jni usually works. Said and done, I created a
> folder in osgSimple called "libs" and copied the OpenSceneGraph
> 3.3.8 library files (static libraries) into the "libs" folder.

That is unlikely to work - that is used if you want to preload the
DLLs (.so files) from the Java code, not static libraries - those
cannot be loaded into the running program dynamically anyway.

To me it seems that you have OSG compiled incorrectly for some reason
and it is trying to load the plugins dynamically (that's osgDB doing
it, not Android) instead of having them statically linked. Or you
don't have them registered correctly, so it falls back to searching
for the dynamic libraries because it doesn't have any plugin to load
that file extension.

It is a weird problem, perhaps there is something broken in recent OSG
versions. I suggest that you try to step through the osgDB code with
the debugger and see why is it attempting to load a plugin dynamically.

Regards,

Jan



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iD8DBQFVY05Cn11XseNj94gRAkBmAKCEZt5o5AzW+Z2Z3O249qIhDyGbeACeNEBN
2Vp7QdfmqxpkD68/Yxd0cUM=
=ihyv
-----END PGP SIGNATURE-----



More information about the osg-users mailing list