Hi J-S,

Thank you for your help.

Yes I have the lib dir of my boost in my LD_LIBRARY_PATH. I even tried to 
create libboost_filesystem.so link everywhere with the same outcome. The thing 
is, /usr/lib64 where the system boost reside is not on the LD_LIBRARY_PATH. How 
do you set that so that whatever value I set in LD_LIBRARY_PATH will superceed 
/usr/lib64? I am using PU_AIS (Princeton University version of centos). Is 
ordering of the packages on the LD_LIBRARY_PATH also an issue?

Thanks

Simon

[...@vis build]$ osgviewer /home/one/data/3dmodels/MINI\ X-Wing/MINI\ X-Wing.dae
Warning: dynamic library 
'/usr/local/tools/OpenSceneGraph/OpenSceneGraph-2.8.1-rc3/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib64/osgPlugins-2.8.1/osgdb_dae.so'
 exists, but an error occurred while trying to open it:
/usr/local/tools/collada-dom/collada-dom-2.2.0/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib/libcollada14dom.so:
 undefined symbol: _ZN5boost6system19get_system_categoryEv
Warning: Could not find plugin to read objects from file 
"/home/one/data/3dmodels/MINI X-Wing/MINI X-Wing.dae".
osgviewer: No data loaded

[...@vis build]$ echo $LD_LIBRARY_PATH
/usr/local/tools/gdal/gdal-1.6.0/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib:/usr/local/tools/vrjuggler/vrjuggler-2.2.1/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib64:/usr/local/tools/boost/boost-1.38.0/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib:/usr/local/tools/cppunit/cppunit-1.12.0/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib:/usr/local/tools/cppdom/cppdom-0.7.10/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib64:/usr/local/tools/OpenSG/OpenSG-2.0.0-r1874/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib64:/usr/local/tools/OpenSceneGraph/OpenSceneGraph-2.8.1-rc3/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib64:/usr/local/tools/OpenSceneGraph/OpenSceneGraph-2.8.1-rc3/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib64/osgPlugins-2.8.0:/usr/local/tools/collada-dom/collada-dom-2.2.0/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib:/usr/local/tools/jasper/
jasper-1.900.1/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib:/usr/local/tools/Coin/Coin-3.0.0/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib:/usr/local/tools/vtk/vtk-5.2.1/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib/vtk-5.2:/usr/local/tools/paraview/paraview-3.4.0/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib/paraview-3.2:/usr/local/tools/qt/qt-4.3.5/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib:/usr/local/openmpi/1.2.8/gcc/x86_64/lib64:/usr/local/lib64/openmpi:/usr/local/tools/omniORB/omniORB-4.1.3/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib






________________________________
From: Jean-Sébastien Guay <jean-sebastien.g...@cm-labs.com>
To: OpenSceneGraph Users <osg-users@lists.openscenegraph.org>
Sent: Friday, May 1, 2009 1:23:07 PM
Subject: Re: [osg-users] OpenSceneGraph-2.8.0 osgviewer and dae plugin

Hi Simon,

> [...@vis MINI X-Wing]$ osgviewer MINI\ X-Wing.dae
> Warning: dynamic library 
> '/usr/local/tools/OpenSceneGraph/OpenSceneGraph-2.8.1-rc3/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib64/osgPlugins-2.8.1/osgdb_dae.so'
>  exists, but an error occurred while trying to open it:
> /usr/local/tools/collada-dom/collada-dom-2.2.0/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib/libcollada14dom.so:
>  undefined symbol: _ZN5boost6system19get_system_categoryEv
> Warning: Could not find plugin to read objects from file "MINI X-Wing.dae".
> osgviewer: No data loaded

Looks to me like your LD_LIBRARY_PATH does not contain the path to your boost 
dynamic libraries, or it is after the path to the system-compiled boost 
libraries.

You'll need to add the bin/ directory of your own compiled version of boost 
(where the .so files are) to your LD_LIBRARY_PATH, before the directory where 
the system-compiled versions are. You might want to do this only when starting 
your app, otherwise other programs which might expect to find the 
system-compiled version of boost might have problems too.

Hope this helps,

J-S
-- ______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                              http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



      
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to