[GRASSLIST:4160] Re:Re:Re: nviz don

Glynn Clements glynn.clements at virgin.net
Tue Aug 10 11:31:37 EDT 2004


Michele wrote:

> > > The problem seems to be in the "do_zoom" module here's the output:
> > 
> > > do_zoom.c: In function `Create_OS_Ctx':
> > > do_zoom.c:281: `GLX_PBUFFER_WIDTH' undeclared (first use in this function)
> > > do_zoom.c:281: (Each undeclared identifier is reported only once
> > > do_zoom.c:281: for each function it appears in.)
> > > do_zoom.c:283: `GLX_PBUFFER_HEIGHT' undeclared (first use in this function)
> > 
> > Right; this corresponds to a recent change.
> > 
> > > maybe it's a debian specific problem?
> > 
> > No; AFAIK, it applies to anything using Mesa 3.x. The library defines
> > glXCreatePbuffer, so configure defines HAVE_PBUFFERS, so do_zoom.c
> > tries to use pbuffers, which fails because GLX_PBUFFER_WIDTH/HEIGHT
> > aren't defined in the header file.
> > 
> > For now, the simplest solution is to remove the line:
> > 
> > 	#define HAVE_PBUFFERS 1
> > 
> > from src/include/config.h.
> 
> Thanks for your ansewers,
> 
> I see.. so do I have to use something else than mesa or maybe to
> upgrading this library will fix the problem?

Certainly, the OpenGL libraries/headers which are included in XFree86
4.x work. AFAICT, Mesa 4.x should also work.

Also, I've now fixed this issue in CVS.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list