Compiling Wine w/OpenGL Support

For questions concerning driver development in general, problems with the board or users, feature requests or other Off-Topic discussions.

Compiling Wine w/OpenGL Support

Postby Mike » Wed Oct 03, 2007 1:03 am

When compiling Wine with OpenGL support I receive the following errors:

Code: Select all
opengl.c: In function 'X11DRV_wglCreatePbufferARB':
opengl.c:2264: error: 'GL_TEXTURE_RECTANGLE_NV' undeclared (first use in this function)
opengl.c:2264: error: (Each undeclared identifier is reported only once
opengl.c:2264: error: for each function it appears in.)
opengl.c:2265: error: 'GL_TEXTURE_BINDING_RECTANGLE_NV' undeclared (first use in this function)
opengl.c: In function 'X11DRV_wglQueryPbufferARB':
opengl.c:2456: error: 'GL_TEXTURE_RECTANGLE_NV' undeclared (first use in this function)
make[2]: *** [opengl.o] Error 1
make[2]: Leaving directory `/usr/src/wine/wine-0.9.46/dlls/winex11.drv'
make[1]: *** [winex11.drv] Error 2
make[1]: Leaving directory `/usr/src/wine/wine-0.9.46/dlls'
make: *** [dlls] Error 2


GL_TEXTURE_RECTANGLE_NV and GL_TEXTURE_BINDING_RECTANGLE_NV are defined in the glext.h file from nVidia:

Code: Select all
2275:#define GL_TEXTURE_RECTANGLE_NV           0x84F5
2276:#define GL_TEXTURE_BINDING_RECTANGLE_NV   0x84F6


These don't exist in the glext.h from Matrox.

Is there anything I can do on my end to figure out why the Wine compilation is dying in the absence of an nVidia-specific glext.h header file?
Mike
Sergeant
Sergeant
 
Posts: 16
Joined: Mon Jul 30, 2007 6:34 pm

Postby tuxx-home.at » Thu Oct 18, 2007 10:53 pm

Well, I tried to compile wine 0.9.47 on my notebook (ATI graphics, Mesa OpenGL, I think)
and on my PC @work (Matrox Parhelia OpenGL).

The compilation worked out of the box on the notebook, but I got the same
error messages as you posted above on my PC @work.

Simply adding these two definitions to glext.h made it compile again,
although I don't know if that was a good idea, or not, so you could try to
add them too and then try to run OpenGL programs in wine and report if that
worked.

I attached my working glext.h to this posting if that helps you (rename it to
glext.h - I'll definetly have to edit the forum permissions a bit to allow uploading
of source code files...)
Attachments
glext.out
Matrox GL extension header (modified)
(104.89 KiB) Downloaded 387 times
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Postby tuxx-home.at » Tue Oct 23, 2007 9:46 am

Alright, I dont' know how to test if OpenGL works in wine. I tried to download
and install some benchmarks as well as an OpenGL demo program, but can't
get them to run because of different error messages.

Could you please try to run your OpenGL application and report if that works
with the modified header file?
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Postby Mike » Wed Oct 24, 2007 12:34 am

Sorry for not getting back to you sooner. I haven't checked this forum in a little while.

My initial fix was also to add the definitions to glext.h. I didn't know what problems that would cause, so I ended up reverting back to compiling Wine with the "--without-opengl" option.

To be honest, I don't even remember why I needed Wine with OpenGL support in the first place. It must not have been very important. :)

At this point it is more of a curiosity. I suppose the Wine developers belong to that group of people who think nVidia and ATI are the only producers of video card chipsets.

If I think of an application I need to run in the future, I'll look in to this again. Thanks for looking in to this for me.
Mike
Sergeant
Sergeant
 
Posts: 16
Joined: Mon Jul 30, 2007 6:34 pm

Postby tuxx-home.at » Wed Oct 31, 2007 9:09 am

I suppose the Wine developers belong to that group of people who think
nVidia and ATI are the only producers of video card chipsets.


The problem is, that especially nVidia does a lot for the OpenGL implementation
on Linux and its OpenGL implementation is far the best currently, so it's a
de-facto standard to use the nVidia OpenGL header files. All others have to
include these definitions too as long as there's no real standard.

Matrox, as always, is far behind that.
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe


Return to General questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron