Hi, When loading an osgb file using osgDB::readNodeFile() I get the following error: InputStream::readObject(): Unsupported wrapper class osg::DefaultUserDataContainer InputStream: Failed to read from stream. At osg::Group osg::Group osg::MatrixTransform osg::Group osg::Geode osg::Geode osg::Geometry osg::Drawable osg::StateSet osg::StateSet
My application is linked statically against osg-3.0.1 ( I also tried osg-3.1.1) The osgb file was created using osgconv on an osgt file. Loading the osgt file works fine. Loading the osgb and osgt file works also fine when linking dynamically. The osgstaticviewer loads the osgb file without aproblem. I followed the example osgstaticviewer and used the same USE_OSGPLUGIN, USE_DOTOSGWRAPPER_LIBRARY and USE_SERIALIZER_WRAPPER_LIBRARY macros in the same order. However I had to change the order of the static libraries in my makefile to get things compiling. Can anybody give me a hint why the "Failed to read from stream" error occurs when linking statically? Might it be related to the library order in the makefile? Is there something else I missed? Thank you! Cheers, Thilo ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48961#48961 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

