Mathias, comments follow:
El Miércoles 03 Septiembre 2008ES 16:08:46 Mathias Fröhlich escribió: [...] > > Although I always "make install" my compilings, I decided to try the > > patch. However it is not working for me: > > [...] > > > so they are linked to the build tree's libraries, but: > > > > $ ./osgviewer cow.osg > > Warning: Could not find plugin to read objects from file "cow.osg". > > ./osgviewer: No data loaded > > That is not supposed to work. Also not with that patch. > Tell osg you want to have it installed in the prefix say /tmp/foo, then the > installed binaries - when the binaries have an rpath included - will search > in /tmp/foo/plugins-<version> with that patch. Without that patch plugins > are only found if you set LD_LIBRARY_PATH or OSG_LD_LIBRARY_PATH. If I install OSG to my personal, non-system prefix ($HOME/usr), CMake does not include the rpaths into the libraries, so I have to use LD_LIBRARY_PATH to at least be able to run the program, even if I don't use any plugin. Have you found of telling it so? I only found CMAKE_SKIP_RPATH, but I think it does quite the opposite. If I try to execute OSG applications from the build directory, rpath is present in the binaries, so I can run them, but the plugins are not found even they are already installed (in $HOME/usr/lib64/osgPlugins-2.7.2) Thanks for your patience, Alberto _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
