Hi Peter,

On 27 November 2014 at 10:36, Peter Schlau <[email protected]> wrote:

> i'm currently running on Debian 7.0.2 64Bit
> I actually did not build the OSG and VPB myself, i got the sources from
> /community/news/130-new-svn-repository-url
> from this site.
>
> Is there any way to manually register the source ReaderWriter?
> Maybe using a startup script of some kind.
>

It should already be registering - there is a proxy object that should be
doing the auto registration of the ReaderWriter.

The only I can think of is that some compiler settings or something about
the compiler has disabled the static initialization that the proxy object
uses.  Try adding some debug code into proxy initialization by locally
expanding the REGISTER_OSGPLUGIN macro found at  the end of the
VirtualPlanetBuilder/src/vpb/DatabaseBuilderIO.cpp file:

// now register with Registry to instantiate the above
// reader/writer.
REGISTER_OSGPLUGIN(vpb, VPBReaderWriter)

The macro is defined in OpenSceneGraph/include/osgDB.

Does the OpenSceneGraph itself work fine?  I.e. can your run "osgviewer
cow.osgt" and have it load it's plugins all OK?  The plugins all use the
same REGISTER_OSGPLUGIN macro to create the proxy object that does the auto
registration.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to