I can only approach this from a windows perspective. Other people will need to look at the linux behaviour.
I believe that the current behaviour of DynamicLibrary::LoadLibrary is correct. i.e. Search the OSG supplied paths first then use the default OS behaviour. This allows a user to override the default behaviour. However I think the default setting of the library search path should be empty for windows as the paths that are currently added are included in the default OS search behaviour. As things are at the moment OS specific paths are always added to it by the call to appendPlatformSpecificLibraryFilePaths which is called (indirectly) by the Registry object constructor. I will be submitting a patch for this in a few minutes time. On the assumption that the code was put there for a reason. I will leave the other OS cases for others to resolve. Roger > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:osg-users- > [EMAIL PROTECTED] On Behalf Of Jean-Sébastien Guay > Sent: 10 August 2007 18:56 > To: [email protected] > Subject: Re: [osg-users] osgDB::appendPlatformSpecificLibraryFilePathson > Windows > > Hello, > > > My suggestion is, first let the operating system search for the shared > > library, only after that OSG should search for it, probably some OSG > > specific library search environmental variable, something like > > OSG_PLUGIN_PATH. > > While I have not had problems with the current behaviour as some > posters in this thread have, I agree with this idea. Let the OS look > for the library (.so/.dll) first, and then if it isn't found OSG can > look for it in other ways. > > I will for sure test any patch for this, since I have not had problems > before I will expect not to have any after either :-) > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [EMAIL PROTECTED] > http://whitestar02.webhop.org/ > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

