[GRASSLIST:983] Re: GRASS cvs doesn't find gl.h at configure time - Ubuntu Dapper

Glynn Clements glynn at gclements.plus.com
Tue May 2 18:19:49 EDT 2006


Stefano Costa wrote:

> I'm on Ubuntu Dapper Drake, so I'm quite on an experiment.. I'll be
> grateful if you can help me.
> 
> I'm not able to get 6.1.cvs configured for compiling as usual. configure
> complains about missing the file gl.h
> 
> I know it's for OpenGL acceleration, though I don't know if I need it
> (nviz needs it, maybe?).

It's required for NVIZ and r3.showdspf (the latter isn't built by
default). You can use --without-opengl if you don't need NVIZ.

> However, configure script is right, I haven't
> got that file, since I enabled hardware acceleration on my laptop. I
> don't know if it's something wrong with package dependencies, but I
> cannot get the OpenGL packages installed without removing the Mesa DRI
> ones, that's not what I want.
> 
> libgl1-mesa-dev installs, among the others, these files:
> 
> /usr/include/GL/glx.h
> /usr/lib/libGL.so
> 
> libglu1-mesa-dev installs too:
> 
> /usr/include/GL/glu.h
> /usr/lib/libGLU.so
> 
> So I don't have any gl.h at all on my machine. To get the thing working,
> how should I manage?
> And, furthermore, do you think I should file a bug against Ubuntu about
> this?

In most cases, you should use the OpenGL implementation from
XFree86/X.org.

The only reason to install Mesa is if you're using a really old
version of XFree86 which doesn't include OpenGL. XFree86 4.x and all
X.org releases include OpenGL support. Some distributions package the
X.org OpenGL implementation as a separate component, so that you can
omit it if you are using nVidia's proprietary implementation.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list