Re: X11 OpenGL and Wine
Re: X11 OpenGL and Wine
- Subject: Re: X11 OpenGL and Wine
- From: "Ryan Walklin" <email@hidden>
- Date: Sun, 11 Nov 2007 18:55:34 +1300
Thanks for your prompt reply and detailed explanations Ben, I really
appreciate it.
On Nov 11, 2007 6:26 PM, Ben Byer <email@hidden> wrote:
> On Nov 10, 2007, at 2:52 PM, Ryan Walklin wrote:
>
> I'm not *positive* this is the problem, but I want to clear a couple
> of things up first so that we can eliminate them as potential problem
> causes.
>
> 1. In the Wine bugzilla bug, you mentioned this:
>
> More correctly Wine should link to
> /System/Library/Frameworks/OpenGL.Framework/Versions/A/Libraries/
> OpenGL.dylib,
> as the /usr/X11/lib library consists of links to the Framework. This
> can be
> achieved by directly linking to the framework (-Framework OpenGL -
> framework
> GLUT) rather than -lGL and -lGLU on OS X.
> I've seen this mentioned before, but this is incorrect. Link against /
> usr/X11/lib/libGL.dylib. Do not link to OpenGL framework. Use that
> workaround (LDFLAGS="-Wl,-dylib_file,/System/Library/Frameworks/
> OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/
> Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib") as a
> magical incantation to work around a bug in ld64. Do not try to link
> against OpenGL.framework unless you are a native Cocoa/Carbon app.
OK, I stand corrected. I'd made that original comment while still
under the assumption that this was why the configure script couldn't
find libGL.dylib, but now see it was due to the linker bug.
>
> 2. Why do you need to set DYLD_FALLBACK_PATH? That way be dragons;
> that's why Gimp-2.2 doesn't work on Leopard. It's a measure of last
> resort. We should be able to find a better way.
I've been using that DYLD_FALLBACK_LIBRARY_PATH since I saw it used by
the chap maintaining the Macports Wine port. It also seemed to be
supported by the section of the page at
http://developer.apple.com/documentation/DeveloperTools/Conceptual/DynamicLibraries/Articles/DynamicLibraryUsageGuidelines.html,
from which I concluded /usr/X11/lib wasn't part of the standard linker
search path.
For some reason Wine isn't able to find libXrender or libGL without
it, and eventually terminates with various combinations of the
following errors.
fixme:xrender:X11DRV_AlphaBlend Unable to AlphaBlend without Xrender
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
err:wine_d3d:WineDirect3DCreate Direct3D9 is not available without opengl
Pointing it at /usr/X11/lib with the dyld env-var allows it to find
the various X libs, but gives the render error in my earlier mail.
Thanks again for your help, it's really nice to have this level of
assistance from someone who knows the system well.
Regards,
Ryan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden