> What about using LD_LIBRARY_PATH?
>
> --
> Alberto
>
I honestly don't know if this would work, but I'm trying to figure out
how to package stuff at the quality of commercial release, so I prefer
to avoid LD_LIBRARY_PATH. LD_LIBRARY_PATH is fine for development and
debugging, but it's generally considered very bad for use in any
software distribution. Just google for "LD_LIBRARY_PATH evil" or
something similar.
>
> Hi Terry,
>
>> ./osgPlugins-3.1.0
>> /usr/local/lib/osgPlugins-3.1.0
>> ./
>> /usr/local/lib/
>
> Is that the checking of the all files paths first with the
> "/osgPlugins-version" appended that is causing the problem? If this
> wasn't appended then ./ would have been checked first. The
> /osgPlugins-version is appended for plugins to avoid versioning
> problems.
>
> Could you just place your plugins in the osgPlugins-version directory?
>
> Robert.
>
There are a number of problems here. One of them is that all the
paths are first checked with osgPlugins-version appended. This
prevents me from using
setLibraryFilePathList(".:/usr/lib:/usr/local/lib"); In this case,
/usr/local/lib/osgPlugins-version will actually be checked before .
You are right that the workaround for this is to put my plugins in
./osgPlugins-version, but I would rather just keep them in .
As far as I can see, the only way to keep them in . is to use
setLibraryFilePathList(".");
Unfortunately, any use of setLibraryFilePathList() also makes it so
that OSG_LIBRARY_PATH has no effect anymore, which makes my program
considerably less flexible.
Ideally, I would like to have total control over the paths to search
just using environment variables, but I don't see a way to do this.
Are there any ways to control the plugin search paths other than with
setLibraryFilePathList() and OSG_LIBRARY_PATH? Would it be alright to
modify or amend the way OSG searches plugin paths? Maybe we can come
up with something more flexible.
- Terry
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org