El Friday 09 November 2007 04:37:01 Michael W. Hall escribió:
> I downloaded the OpenSceneGraph Quick Start Guide and read it.  I
> created a KDE app in KDevelop.  I basically did the following in the
> header file:
>
> osgViewer::Viewer viewer
>
> I linked with libosgViewer.so and libosg.so.  The program compiles and
> when I try to run it I am getting the following error:
>
> /home/mwhall/Projects/KMap/debug/./src/kmap: error while loading shared
> libraries: libosg.so.25: cannot open shared object file: No such file or
> directory
>
> Can anyone give me a clue as to what is going on?  I linked with the
> libs in /usr/local/lib64.  If you need more info I will provide it, just
> trying to take baby steps.
>
> Thanks.

The OS is not finding the libraries at run time. You either have to set the 
LD_LIBRARY_PATH environment variable accordingly

export LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/usr/local/lib64

or add that path to your system's library paths. To do that, add the line 

/usr/local/lib64

to the bottom of your /etc/ld.so.conf and then run the ldconfig command.

Alberto

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

Reply via email to