Hi Guys,

To the Registry::createLibraryNameForExtension(..) I have gone ahead
added the insertion of osgPlugins-version/ in front of plugin names
for all platforms except OSX.
This change will work to ensure that correct version of the plugins is
picked up at runtime.

Please not if you are setting paths to the plugins, you shouldn't do
this, rather set path to the parent directory of the plugins.  If you
are installing the OSG into system directories then probably won't
need to add anything at all.

For OSX, there is rather a mess in FileUtils.cpp file where the OSX
version of osgDB::appendPlatformSpecificLibraryFilePaths hardwires the
directory name of PlugIns, which will be what the XCode projects are
probably hardwiring too as well.  I don't know if this convention is
something common on OSX or that it was just adopted by the OSX
contributors.  Personally I think we should be setting the path under
OSX to osgPlugins-version like on all other platforms.

On OSX there is also the issue of the Cmake build installing files in
standard unix places not frameworks, but the source code above is
still hardwired to the Frameworks directories which can lead to the
wrong plugins being picked up.

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

Reply via email to