http://bugs.winehq.org/show_bug.cgi?id=12981
Summary: libGL not found and openGL disabled, but the library is there. Product: Wine Version: 0.9.61. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: winex11.drv AssignedTo: wine-bugs@winehq.org ReportedBy: yochenhsieh@xuite.net
I have the following error messages when running winecfg for the first time to create .wine directory:
err:wgl:X11DRV_wglGetProcAddress No libGL on this box - disabling OpenGL support !
However, I have ati 3d driver installed and linux native 3d games work fine. My Xorg is 6.8.2, and I have these files linked to /usr/X11R6/lib/libGL.so.1.2: /usr/lib/libGL.so /usr/lib/libGL.so.1 /usr/X11R6/lib/libGL.so /usr/X11R6/lib/libGL.so.1
I've tried the packages built for my distribution, and built wine on my own, -- all results same errors.
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #1 from You-Cheng Hsieh yochenhsieh@gmail.com 2008-05-07 00:15:13 --- in "dlls/winex11.drv/opengl.c":
1701 /** 1702 * X11DRV_wglGetProcAddress 1703 * 1704 * For OpenGL32 wglGetProcAddress. 1705 */ 1706 PROC X11DRV_wglGetProcAddress(LPCSTR lpszProc) 1707 { 1708 int i, j; 1709 const WineGLExtension *ext; 1710 1711 int padding = 32 - strlen(lpszProc); 1712 if (padding < 0) 1713 padding = 0; 1714 1715 if (!has_opengl()) { 1716 ERR("No libGL on this box - disabling OpenGL support !\n"); 1717 return 0; 1718 }
I'm sorry but I don't understand what it means or how should I resolve my problem with it.
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #2 from You-Cheng Hsieh yochenhsieh@gmail.com 2008-05-07 00:39:42 --- X11DRV_wglGetProcAddress was added into opengl.c since 0.9.21, and the following codes was added in 0.9.25:
1324 if (!has_opengl()) { 1325 ERR("No libGL on this box - disabling OpenGL support !\n"); 1326 return 0; 1327 }
I've tested 0.9.20 and OpenGL is working with this version. I will test 0.9.21~24 and see if the result is diffrent to 0.9.25~61.
http://bugs.winehq.org/show_bug.cgi?id=12981
You-Cheng Hsieh yochenhsieh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #3 from You-Cheng Hsieh yochenhsieh@gmail.com 2008-05-07 10:25:33 --- Until 0.9.23, all opengl apps just work fine. After 0.9.24, opengl apps failed to start.
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #4 from You-Cheng Hsieh yochenhsieh@gmail.com 2008-05-07 22:08:13 --- My glxinfo and fglrxinfo:
[user@localhost ~]$ glxinfo | grep version Loading required GL library /usr/lib/libGL.so.1 server glx version string: 1.2 client glx version string: 1.3 OpenGL version string: 2.0.6334 (8.34.8) glu version: 1.3 [user@localhost ~]$ fglrxinfo Loading required GL library /usr/lib/libGL.so.1 display: :0.0 screen: 0 OpenGL vendor string: ATI Technologies Inc. OpenGL renderer string: MOBILITY RADEON 9700 OpenGL version string: 2.0.6334 (8.34.8)
http://bugs.winehq.org/show_bug.cgi?id=12981
You-Cheng Hsieh yochenhsieh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|0.9.61. |CVS/GIT
http://bugs.winehq.org/show_bug.cgi?id=12981
James Hawkins truiken@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |0.9.24.
--- Comment #5 from James Hawkins truiken@gmail.com 2008-05-07 22:52:39 --- The version field is the first-known version to not work.
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #6 from Lei Zhang thestig@google.com 2008-05-07 23:20:18 --- Why don't you trace though has_opengl() and find where it is returning false?
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #7 from You-Cheng Hsieh yochenhsieh@gmail.com 2008-05-07 23:37:52 --- Could you please guide me how to trace though has_opengl()? I'm sorry but I don't know much about programing and debugging. Thanks.
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #8 from Lei Zhang thestig@google.com 2008-05-07 23:59:14 --- Created an attachment (id=12813) --> (http://bugs.winehq.org/attachment.cgi?id=12813) has_opengl debug patch
Apply this patch to Wine 0.9.61, and then run wineprefixcreate and attach the output.
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #9 from You-Cheng Hsieh yochenhsieh@gmail.com 2008-05-08 08:00:12 --- Created an attachment (id=12820) --> (http://bugs.winehq.org/attachment.cgi?id=12820) wineprefixcreate ouput
I quote the important lines here:
Checking for symbol glXChooseVisual symbol not found
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #10 from Lei Zhang thestig@google.com 2008-05-09 00:39:43 --- Say, does glxgears work for you? How about fgl_glxgears? Have you tried newer drivers? The driver you're using is over a year old.
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #11 from You-Cheng Hsieh yochenhsieh@gmail.com 2008-05-09 01:56:51 --- glxgears, fgl_glxgears, googleearth, and other opengl apps work with this version driver. The latest ati driver will freeze my system when I attemped to run glxgears and fgl_glxgears.
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #12 from You-Cheng Hsieh yochenhsieh@gmail.com 2008-05-09 06:44:20 --- The output of wineprefixcreate with latest ati driver is the same. Can wine not to check for symbol glXChooseVisual?
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #13 from You-Cheng Hsieh yochenhsieh@gmail.com 2008-05-09 09:52:58 --- Tried with these ati driver versions: 8.36, 8.42, 7.12, 8.4(latest). All returns the same output.
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #14 from Lei Zhang thestig@google.com 2008-05-09 11:25:39 --- What Linux distro are you running? Can you go into the wine source directory and run ./configure --verbose and see if it gives you any warnings about missing libraries?
Everything works fine with my ATI card here...
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #15 from You-Cheng Hsieh yochenhsieh@gmail.com 2008-05-09 19:13:00 --- Created an attachment (id=12855) --> (http://bugs.winehq.org/attachment.cgi?id=12855) messages of ./configure --verbose
http://bugs.winehq.org/show_bug.cgi?id=12981
--- Comment #16 from You-Cheng Hsieh yochenhsieh@gmail.com 2008-05-09 19:14:18 --- Created an attachment (id=12856) --> (http://bugs.winehq.org/attachment.cgi?id=12856) config.log
http://bugs.winehq.org/show_bug.cgi?id=12981
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #12855|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=12981
You-Cheng Hsieh yochenhsieh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #17 from You-Cheng Hsieh yochenhsieh@gmail.com 2008-05-10 08:45:27 --- Updated Mesa liberies and fixed this problem.
http://bugs.winehq.org/show_bug.cgi?id=12981
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |INVALID
--- Comment #18 from Lei Zhang thestig@google.com 2008-05-10 10:04:57 --- system configuration problem - resolving as invalid
http://bugs.winehq.org/show_bug.cgi?id=12981
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #19 from Lei Zhang thestig@google.com 2008-05-10 10:05:08 --- closing.