Sorry about the incorrect subject line before. I hate it when I do that :(
> But I'm not talking about that usage. I'm talking to set it just for > your application. I have seen many commercial applications doing that ?a > launcher script that sets LD_LIBRARY_PATH *in that shell* and then > executes the process, so it uses the dynamic objects bundled with the > application instead of system ones. > > -- > Alberto > That's a good point; that's probably a safe way to use it. I tried setting LD_LIBRARY_PATH=. and it makes it so ./osgPlugins-version is searched but not . I haven't figured out why yet, but it must be some detail inside of OSG. However, I'm still leaning toward solving this problem with internal OSG functionality if possible since I want this app to be cross-platform and Windows does not have a direct equivalent to LD_LIBRARY_PATH. I'd rather use OSG behavior that is guaranteed to be consistent across platforms. > > Something like the FindFileCallback found in include/osgDB/Callbacks? > You can assign a FindFileCallback to osgDB::Options or the Registry. > I just tried this out and I think it gives me full flexibility. It looks like I can search however I want now and still keep using OSG_LIBRARY_PATH. I should have remembered this since I was experimenting with the findDataFile half of the callback a few months ago. Thank you both for the help. - Terry _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

