Hi,
On Mon, 2011-08-22 at 11:20 +0200, Lukas David Jacobs wrote:
> Hi all!
>
> I've encountered another problem on my path working with OSG:
> I am currently try to build some custom test project using eclipse. Here is
> what's interesting of the console output:
>
> g++ -L/usr/local/lib/debug -o"OpenSG_Client" ./src/main.o -lOSGBase
> -lOSGCluster -lOSGSystem
> /usr/bin/ld: warning: libOSGDrawable.so.2.0.0, needed by
> /usr/local/lib/debug/libOSGCluster.so, not found (try using -rpath or
> -rpath-link)
> /usr/bin/ld: warning: libOSGGroup.so.2.0.0, needed by
> /usr/local/lib/debug/libOSGCluster.so, not found (try using -rpath or
> -rpath-link)
> /usr/bin/ld: warning: libOSGState.so.2.0.0, needed by
> /usr/local/lib/debug/libOSGCluster.so, not found (try using -rpath or
> -rpath-link)
>
> I think you'll see the problem. This is causing me errors, of course, later
> in the linking process. Also I am not sure which lib I need to link to use
> the SimpleSceneManager.
the quickest way should be
ldd testSimpleSceneManager | grep OSG
libOSGDrawable.so.2.0.0
libOSGFileIO.so.2.0.0
libOSGGroup.so.2.0.0
libOSGImageFileIO.so.2.0.0
libOSGState.so.2.0.0
libOSGText.so.2.0.0
libOSGUtil.so.2.0.0
libOSGWindow.so.2.0.0
libOSGWindowGLUT.so.2.0.0
libOSGDynamics.so.2.0.0
libOSGWindowX.so.2.0.0
libOSGSystem.so.2.0.0
libOSGBase.so.2.0.0
if you included the tests in your build. You should get the correct
list, alternatively add /usr/local/lib/debug (assuming that is where you
installed OpenSG) to your LD_LIBRARY_PATH before you start eclipse so
that the linker can resolve the transitive dependencies. I don't know
enough about eclipse to know if you can set this one somewhere inside.
kind regards
gerrit
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users