[osg-users] osgDB::appendPlatformSpecificLibraryFilePaths on Windows

Orhun Birsoy orhunbirsoy at gmail.com
Fri Aug 10 13:16:38 PDT 2007


> No I disagree, if you are setting OSG paths explictly its because you
> have something specific in mind - these should come before the OS
> directories otherwise you'd never be able to have a localised OSG
> install.
>

But depending on LD_LIBRARY_PATH to do that is not the way to do it.
This article http://xahlee.org/UnixResource_dir/_/ldpath.html
describes pretty much my view.

But that's not the problem. The problem is line 114-115 in
DynamicLibrary.cpp. For 'other unix' the operating system never gets
the chance to search for the shared lib by itself. It is either
whatever OSG does (ie in osgDB::findLibraryFile), or "./". It is
wrong.

-- 
Orhun Birsoy



More information about the osg-users mailing list