Graphics Problem

Paul Bain prbain at essex.ac.uk
Tue Jun 17 06:55:03 CDT 2003


On Tue, 2003-06-17 at 12:27, Rob Hughes wrote:
> On Mon, 2003-06-16 at 13:50, Joe Giles wrote:
> > Yes, this has worked. I'm back in business. Thanks for all the help :)
> > 
> > Joe
> > 
> > On Mon, 2003-06-16 at 11:27, Robert Shearman wrote:
> > > Joe Giles said:
> > > > Oh, the Wine installed doesnt pick up weather or not you have OpenGL
> > > > installed or not anymore? I have Open GL installed AND working on other
> > > > games (Native linux binaries such as Quake 2 and RTCW).
> > > 
> > > It should do.
> > > 
> > > > Cogman said:
> > > > All you need to do is copy /usr/share/doc/NVIDIA_GLX-1.0/include/GL/* to
> > > > /usr/X11R6/include/GL and rebuild wine.
> > > 
> > > Yes, this is the right fix. It is a strange problem as it is rare for a
> > > header change to affect what happens in the binary, rather than it just not
> > > compiling. It is a known 'feature' with NVidia drivers, nothing to do with
> > > Wine.
> > > 
> 
> 
> Hmmm... I just gave this a shot as well. I get:
> make[2]: Entering directory `/usr/src/wine/dlls/opengl32'
> gcc -c -I. -I. -I../../include -I../../include -I/usr/X11R6/include
> -D_REENTRANT -fPIC -D__WINESRC__  -Wall -mpreferred-stack-boundary=2
> -gstabs+ -Wpointer-arith  -g -O2 -o opengl_ext.o opengl_ext.c
> opengl_ext.c:12: redefinition of `GLintptrARB'
> /usr/X11R6/include/GL/gl.h:67: `GLintptrARB' previously declared here
> opengl_ext.c:13: redefinition of `GLsizeiptrARB'
> /usr/X11R6/include/GL/gl.h:68: `GLsizeiptrARB' previously declared here
> make[2]: *** [opengl_ext.o] Error 1
> make[2]: Leaving directory `/usr/src/wine/dlls/opengl32'
> make[1]: *** [opengl32] Error 2
> make[1]: Leaving directory `/usr/src/wine/dlls'
> make: *** [dlls] Error 2
> 
> This is with cvs as of this morning and NVIDIA 43.63 drivers.
> 
> Rob
> 
> 

This is caused by GLintptrARB and GLsizeiptrARB being defined in both
the NVIDIA GLX headers and in opengl_ext.c in wine. Just comment out
these two lines from dlls/opengl32/opengl_ext.c in the wine source
directory and it'll build:
typedef ptrdiff_t GLintptrARB;
typedef ptrdiff_t GLsizeiptrARB;




More information about the wine-users mailing list