#16603 closed defect (fixed)
wine does not use OpenGL
Reported by: | jean-jaques@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | jyrkiwahlstedt | |
Port: | wine, wine-devel |
Description
wine installed from MacPorts is not able to use OpenGL acceleration. In Terminal it says: "No libGL on this box - disabling OpenGL support".
Attachments (1)
Change History (10)
comment:1 Changed 16 years ago by mf2k (Frank Schima)
Cc: | jwa@… added |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
Port: | wine added |
comment:2 follow-up: 6 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Do you still see the problem with wine-devel 1.1.5? If you do, what version of Mac OS X are you running, and what do I need to type to see the problem myself?
comment:3 Changed 16 years ago by blb@…
There are a couple issues going on here. Your initial issue is usually dealt with by running
env DYLD_FALLBACK_LIBRARY_PATH=/usr/X11/lib wine ...
That should get wine to see the OpenGL stuff. Though it seems this doesn't work with wine-devel 1.1.5 as that sets its own DYLD_FALLBACK_LIBRARY_PATH to ${prefix} in ${prefix}/bin/wine...
However, once you've done this, you'll probably run into XQuartz ticket 122.
Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | wine-opengl.diff added |
---|
comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to blb@…:
There are a couple issues going on here. Your initial issue is usually dealt with by running
env DYLD_FALLBACK_LIBRARY_PATH=/usr/X11/lib wine ...That should get wine to see the OpenGL stuff. Though it seems this doesn't work with wine-devel 1.1.5 as that sets its own DYLD_FALLBACK_LIBRARY_PATH to ${prefix} in ${prefix}/bin/wine...
wine and wine-devel both have wrappers around wine to set the DYLD_FALLBACK_LIBRARY_PATH. I added this in r26520 to fix some FreeType errors. Does the attached patch fix the OpenGL errors?
comment:5 Changed 16 years ago by blb@…
That's how I handled it on my machine, with wine-devel at least. Should be fine with the non-devel version as well.
comment:6 Changed 16 years ago by jean-jaques@…
Replying to ryandesign@…:
Do you still see the problem with wine-devel 1.1.5? If you do, what version of Mac OS X are you running, and what do I need to type to see the problem myself?
I've tried wine-1.0_1 and I still get these errors. I am using 10.5.4 and an ATI Radeon HD 2600 XT. To test OpenGL I've installed an old Windows game (RollerCoaster Tycoon) and I am always getting these errors: err:wgl:X11DRV_ChoosePixelFormat No libGL on this box - disabling OpenGL support ! err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat err:d3d:InitAdapters Failed to get a gl context for default adapter
When using wine-devel 1.1.5_0 I get the following errors running the game: err:wgl:has_opengl Failed to load libGL: dlopen(libGL.1.dylib, 266): image not found err:wgl:has_opengl OpenGL support is disabled. err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat err:d3d:InitAdapters Failed to get a gl context for default adapter
BTW: the game actually runs, but very slow (due to disabled OpenGL).
comment:7 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Does the attached patch fix anything? I haven't applied it yet, so you would need to download it and apply it to your ports tree and test.
comment:8 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Port: | wine-devel added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Applied the patch to wine and wine-devel in r40534. Now it can at least find libGL. Whether it can actually use it is another matter. Now, instead of
err:wgl:has_opengl Failed to load libGL: dlopen(libGL.1.dylib, 10): image not found err:wgl:has_opengl OpenGL support is disabled.
I get
X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 129 (Apple-DRI) Minor opcode of failed request: 2 () Value in failed request: 0x600268 Serial number of failed request: 2894 Current serial number in output stream: 2894
This is on Tiger running the installer for Graphviz 2.20.2 as a test program.
Assigning/Ccing maintainers.