[GRASSLIST:4722] Re: opengl compile problem

Richard Greenwood Rich at GreenwoodMap.com
Sun Oct 13 23:08:16 EDT 2002


At 07:49 PM 10/13/2002 -0700, you wrote:
>On Sun, Oct 13, 2002 at 08:12:43PM -0600, Richard Greenwood wrote:
> > At 07:06 PM 10/13/2002 -0700, you wrote:
> > >On Sun, Oct 13, 2002 at 07:52:07PM -0600, Richard Greenwood wrote:
> > >> I am not able to get GRASS compiled with opengl on Mandrake 9.0. I have
> > >> installed Mesa 4.0.4 and I provide GRASS configure with the following
> > >> directive:
> > >>     --with-opengl-libs='/usr/lib /usr/X11R6/lib'
> > >> Which generates this error:
> > >>     checking for location of OpenGL library... /usr/lib  /usr/X11R6/lib'
> > >>     checking for glBegin in -lGL... yes
> > >>     checking for gluBeginCurve in -lGLU... no
> > >>     configure: error: *** Unable to locate GLU library.
> > >> It looks to me like it is getting off to a good start, but then what is
> > >> happening???
> > >
> > >Is there a libGLU.so in either /usr/lib or /usr/X11R6/lib?
> > >
> > >If not, there's the problem.  If yes, then there might be another
> > >reason for the test failing.
> > >
> > >Mesa 4 is new (I didn't know there was a new major version out...).
> > >
> > >--
> > >static const char copyright[] =
> > >        "Copyright (c) 2002 Eric G. Miller <egm2 at jps.net>";
> >
> >
> > Yes, locate returns the following:
> >     /usr/lib/libGLU.so.1.3.404
> >     /usr/lib/libGLU.so.1
> >     /usr/lib/libGLU.so
> >     /usr/lib/libGLU.la
> >
> >     /usr/X11R6/lib/libGLU.so.1.3.403
> >     /usr/X11R6/lib/libGLU.so.1
>
>Okay, check two things: (1) that "gluBeginCurve" still exists in that
>library; and (2) what the dependencies for libGLU are.
>
>For (1):
>$ nm /usr/lib/libGLU.so | grep 'gluBeginCurve'
>
>For (2):
>$ ldd /usr/lib/lib/GLU.so
>
>It might be the configure test just needs to add some other library to
>the compilation flags when testing for "gluBeginCurve".  This has come
>up before for other libs.
>
>--
>static const char copyright[] =
>         "Copyright (c) 2002 Eric G. Miller <egm2 at jps.net>";

Thanks for the ideas, I see where you are going. Here's what I have found:
For 1, above, grep indicates that gluBeginCurve is present in libGLU.so
For 2, above, I get:

[rich at Moab lib]$ ldd libGLU.so
         libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x4009c000)
         libc.so.6 => /lib/i686/libc.so.6 (0x4011b000)
         libpthread.so.0 => /lib/i686/libpthread.so.0 (0x4023b000)
         libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4024f000)
         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4025f000)
         libdl.so.2 => /lib/libdl.so.2 (0x4032a000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

My original lib directive was:
         --with-opengl-libs='/usr/lib /usr/X11R6/lib'
So I added /lib/i686 and /lib, but unfortunately, I am getting exactly the 
same error:
         checking for location of OpenGL library...
         checking for glBegin in -lGL... yes
         checking for gluBeginCurve in -lGLU... no
         configure: error: *** Unable to locate GLU library.

Any other suggestions?

Thanks,
Rich


Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich at GreenwoodMap.com
(307) 733-0203
http://www.GreenwoodMap.com



More information about the grass-user mailing list