On 01/10/2013 06:32 PM, Jan Ciger wrote:
On 01/10/2013 11:49 PM, Jason Daly wrote:
OK, if that's all it is, I'm going to give it a shot.

After fighting a bit with the platform, we've had some luck with getting
other libraries working as shared libraries, so I think we'll be OK here.

It's compiling now and seems to be reasonably happy. Of course, as you
pointed out, compiling and linking is the easy part :-)
I think you will have most problems with actually using plugins (unless
you keep them linked in statically). I don't think that there is a
documented interface how to load shared libs at runtime from C/C++ on
Android, you have to load the shared libs from within Java code.

If you compile all of OSG into one large shared lib and try to load that
at runtime instead of static linking, that should be possible without
too much hassle - e.g. Qualcomm's Vuforia/QCAR is doing it, OpenCV is
doing it, etc. Just make sure to set the lib up as "prebuilt", so that
it gets actually included in your APK and deployed on the device properly.

Actually, we've got shared library loading working already.

A lot of our software is plugin-based (using dlopen), and it's working fine on Android. There is a bit of JNI involved, but only enough to hook into the regular Android GUI/View stuff.

--"J"

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to