Hi, On Wednesday 03 September 2008 15:58, Alberto Luaces wrote: > now I understand the reason of the patch. You mean it is convenient for > *uninstalled* build trees. Then you would not have to use LD_LIBRARY_PATH > since CMake links all the binaries in the build tree with rpath, except the > plugins, that would be searched on the patch's given path. No, the installed ones will only work without that patch if you install them into a directory that is searched by some system default osg knows of.
> 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. May be I miss something, but osgDB will use that what is in LD_LIBRARY_PATH and some system dependent paths and will look for itself if there is a plugins subdirectory with the plugin in question. If osg is not installed in some system prefix path that gets searched for some magig reason and there is no LD_LIBRARY_PATH or OSG_LD_LIBRAR_PATH set, then without the patch you do not have pluggins. With that patch they are found where they get installed. Greetings Mathias -- Dr. Mathias Fröhlich, science + computing ag, Software Solutions Hagellocher Weg 71-75, D-72070 Tuebingen, Germany Phone: +49 7071 9457-268, Fax: +49 7071 9457-511 -- Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Florian Geyer, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Prof. Dr. Hanns Ruder Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
