Hi Edu,

When I run make VERBOSE=1 on the osgviewer application I get an -lGLU
entry just before the -lGL entry, while you have just the -lGL entry.
So this is the cause, the question is why Cmake hasn't added in -lGLU
where it should.

cd into the root of OpenSceneGraph directory and then type ccmake .  ie.

  cd OpenSceneGraph
  ccmake .

Then press 't' to get all the advanced options, then scroll down the
list to get to the OPENGL_glu_LIBRARY entry.  Mine points to
/usr/lib/libGLU.so, as your should do, but perhaps this hasn't been
picked up.

Robert.


On Jan 24, 2008 1:12 PM, Eduardo Gutiérrez Sanmartín
<[EMAIL PROTECTED]> wrote:
> Hi Robert,
>
> Yes, this is the first time I'm trying to compile the OSG in linux.
>
> Doing make VERBOSE=1 I got the following:
>
> ...
> Linking CXX executable ../../bin/osgviewer
> cd /GIS3D/OpenSceneGraph/applications/osgviewer && /usr/bin/cmake -P
> CMakeFiles/application_osgviewer.dir/cmake_clean_target.cmake
> cd /GIS3D/OpenSceneGraph/applications/osgviewer && /usr/bin/c++      -fPIC
> "CMakeFiles/application_osgviewer.dir/osgviewer.o"   -o ../../bin/osgviewer
> -rdynamic -L/GIS3D/OpenSceneGraph/lib -lOpenThreads -losg -losgDB -losgUtil
> -losgGA -losgViewer -losgText -losgGA -losgUtil -losgDB -losg -lm
> -lOpenThreads -lpthread -lGL -lX11 -Wl,-rpath,/GIS3D/OpenSceneGraph/lib
> /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to `gluScaleImage'
> /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to `gluGetString'
> /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to `gluNewTess'
> /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
> `gluTessProperty'
> /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
> `gluTessEndPolygon'
> /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
> `gluTessBeginPolygon'
> /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
> `gluTessNormal'
> /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
> `gluTessVertex'
> /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
> `gluTessCallback'
> /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to `gluErrorString'
> /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
> `gluBuild1DMipmaps'
> /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
> `gluDeleteTess'
> /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
> `gluTessBeginContour'
> /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
> `gluBuild2DMipmaps'
> /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
> `gluTessEndContour'
> collect2: ld devolvió el estado de salida 1
> make[2]: *** [bin/osgviewer] Error 1
> ...
>
> Thanks!
>
> Edu
>
>
>
> 2008/1/24, Robert Osfield < [EMAIL PROTECTED]>:
> >
> >
> >
> > Hi Eduardo,
> >
> > On Jan 24, 2008 12:25 PM, Eduardo Gutiérrez Sanmartín
> > <[EMAIL PROTECTED]> wrote:
> > > I'm trying to compile OSG-2.3.3 in Ubuntu 7.10 and I get some errors of
> the
> > > type "undefined reference to..." when it's linking osgviewer to
> libosg.so,
> > > libosgUtil.so... All those functions beginning with glu (gluScaleImage,
> > > gluGetString...) but I have installed libglu1-mesa-dev.
> > >
> > > What it's wrong?
> >
> > I don't know what is wrong. I have Kubuntu 7.10 here and also use the
> > libglu1-mesa-dev 7.0.1 for GLU and everything compiles and links just
> > fine.
> >
> > Try doing a
> >
> > make VERBOSE=1
> >
> > To see if that reveals anything about what its linking against.
> >
> > Is this the first time you've tried to compile the OSG?
> >
> > Robert.
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to