Hi Mathias,

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.

Although I always "make install" my compilings, I decided to try the patch. 
However it is not working for me:

~/OSGSVN2/RelWithDebug/bin$ ldd ./osgviewer
        linux-vdso.so.1 =>  (0x00007fff439ff000)
        libosgViewer.so.46 
=> /home/alberto/OSGSVN2/RelWithDebug/lib/libosgViewer.so.46 
(0x00007fa13b444000)
        libosgGA.so.46 
=> /home/alberto/OSGSVN2/RelWithDebug/lib/libosgGA.so.46 (0x00007fa13b1f0000)
        libosgText.so.46 
=> /home/alberto/OSGSVN2/RelWithDebug/lib/libosgText.so.46 
(0x00007fa13afa4000)
        libosgDB.so.46 
=> /home/alberto/OSGSVN2/RelWithDebug/lib/libosgDB.so.46 (0x00007fa13ad21000)
        libosgUtil.so.46 
=> /home/alberto/OSGSVN2/RelWithDebug/lib/libosgUtil.so.46 
(0x00007fa13a9a3000)
        libosg.so.46 => /home/alberto/OSGSVN2/RelWithDebug/lib/libosg.so.46 
(0x00007fa13a541000)
        libOpenThreads.so.11 
=> /home/alberto/OSGSVN2/RelWithDebug/lib/libOpenThreads.so.11 
(0x00007fa13a339000)
       (...)

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

Is there an easy way to know which path is OSG looking for to find the 
plugins?

Thanks,

Alberto


El Miércoles 03 Septiembre 2008ES 14:14:34 Mathias Fröhlich escribió:
> Hi,
>
> On Wednesday 03 September 2008 13:59, Alberto Luaces wrote:
> > sorry if I have not understood you, but I always could have several OSG
> > versions on Linux without pointing LD_LIBRARY_PATH to the *plugin*
> > directory. I have installed the official Debian packages (currently
> > 2.4.0) and the SVN version (2.7.1). If I want to use the SVN version,
> > before recompiling, I set LD_LIBRARY_PATH so:
> >
> > export LD_LIBRARY_PATH=/home/alberto/usr/lib64/
> >
> > In order to test this more, I have uninstalled the Debian packages and
> > found that my programs keep working (the plugins are found implicitly) by
> > only specifying the lib directory in LD_LIBRARY_PATH.
>
> With this patch you do not need to export the LD_LIBRARY_PATH variable.
> If you have different builds in different prefixes floating around this is
> very conveninent.
>
> Greetings
>
> Mathias



_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to