[osg-users] osgDB::appendPlatformSpecificLibraryFilePaths on Windows

Orhun Birsoy orhunbirsoy at gmail.com
Fri Aug 10 15:42:07 PDT 2007


>
> I think you're heading off on a bit too much of one variable war path.
>  The OSG doesn't just depend upon LD_LIBRARY_PATH, oggDB::Registry
> sets up platform specific paths which include LD_LIBRARY_PATH, these
> are the defaults.

OK. I didn't know there was a variable war path as well :).

I'll first ask a question. LD_LIBRARY_PATH (DYLD_LIBRARY_PATH, PATH)
is already being used by the operating system to search for the
library. What I don't understand why OSG needs to append these to the
filename and do the search itself? Doesn't the operating system
already doing it if you provide just a filename?

Just in case, it is possible to add "." (ie current directory) to
LD_LIBRARY_PATH. (ie ".:/usr/lib").

In my experience, OSG_LIBRARY_PATH (in
Registry::initLibraryFilePathList) is enough to customize the plugin
loading paths.
-- 
Orhun Birsoy


More information about the osg-users mailing list