wine git can no longer find the opengl libraries

Bug #513554 reported by Vidar Braut Haarr
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
ia32-libs (Ubuntu)
Fix Released
Medium
Alberto Milone

Bug Description

Binary package hint: wine

On Lucid

Since the latest round of ia32 lib (I think it was caused by that, at least) updates in lucid, the WINE git configure script can no longer find the OpenGL development headers.

This worked at least yesterday. The only relevant package I can remember updating since it last worked is ia32-libs.

Steps to reproduce;
1. Make sure you have some 3D driver installed and working with all relevant -dev packages and mesa stuff.
2. git clone git://source.winehq.org/git/wine.git ~/wine-git
3. cd wine-git
4. ./configure

Note how it says

"configure: WARNING: No OpenGL library found on this system.
OpenGL and Direct3D won't be supported."

While these libraries are clearly present and it was working fine last night.

Revision history for this message
Vidar Braut Haarr (vhaarr+launchpad) wrote :

Wines config.log includes these lines:

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL
/usr/bin/ld: cannot find -lGL

"fezie" on #winehq suggested that this might be caused by https://bugs.launchpad.net/ubuntu/+source/ia32-libs/+bug/506435

Revision history for this message
Alberto Milone (albertomilone) wrote :

I'm not sure about this. Are you building against the 32bit libraries? As /usr/lib/libGL.so points to the 64bit library

Revision history for this message
Vidar Braut Haarr (vhaarr+launchpad) wrote :

I don't know, how can I find out?

Revision history for this message
Vidar Braut Haarr (vhaarr+launchpad) wrote :

Here's a few more lines from the ./configure output;

checking for XICCallback.callback... yes
checking for GL/gl.h... yes
checking for GL/glx.h... yes
checking for GL/glu.h... yes
checking for up-to-date OpenGL version... yes
checking for -lGL... not found
checking for -lGL... not found
checking for -lGLU... libGLU.so.1
checking for audio/audiolib.h... (cached) no

Again, just to clarify, this worked fine the day before I filed this bug. I have been compiling wine from source for as long as I can remember.

Revision history for this message
Alberto Milone (albertomilone) wrote :

Please attach the output of the following commands:

1) ldconfig -p | grep GL
2) ls -l /usr/lib/libGL*
3) ls -l /usr/lib32/libGL*

Revision history for this message
Vidar Braut Haarr (vhaarr+launchpad) wrote :

http://pastebin.com/m677dae4e

folk@folk:~/Programs/wine-git$ ldconfig -p | grep GL
 libGLcore.so.1 (libc6,x86-64) => /usr/lib/nvidia-current/libGLcore.so.1
 libGLcore.so.1 (libc6) => /usr/lib32/nvidia-current/libGLcore.so.1
 libGLU.so.1 (libc6,x86-64) => /usr/lib/libGLU.so.1
 libGLU.so.1 (libc6) => /usr/lib32/libGLU.so.1
 libGLU.so (libc6,x86-64) => /usr/lib/libGLU.so
 libGLU.so (libc6) => /usr/lib32/libGLU.so
 libGL.so.1 (libc6,x86-64) => /usr/lib/nvidia-current/libGL.so.1
 libGL.so.1 (libc6) => /usr/lib32/nvidia-current/libGL.so.1
 libGL.so (libc6,x86-64, OS ABI: Linux 2.4.20) => /usr/lib/libGL.so
 libGL.so (libc6,x86-64) => /usr/lib/nvidia-current/libGL.so
 libGL.so (libc6) => /usr/lib32/nvidia-current/libGL.so
folk@folk:~/Programs/wine-git$ ls -l /usr/lib/libGL*
lrwxrwxrwx 1 root root 13 2010-01-22 17:20 /usr/lib/libGL.so -> mesa/libGL.so
-rw-r--r-- 1 root root 931510 2010-01-20 13:51 /usr/lib/libGLU.a
lrwxrwxrwx 1 root root 11 2010-01-22 17:20 /usr/lib/libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root 20 2010-01-22 17:20 /usr/lib/libGLU.so.1 -> libGLU.so.1.3.070700
-rw-r--r-- 1 root root 461488 2010-01-20 13:51 /usr/lib/libGLU.so.1.3.070700
folk@folk:~/Programs/wine-git$ ls -l /usr/lib32/libGL*
lrwxrwxrwx 1 root root 11 2010-01-27 17:29 /usr/lib32/libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root 20 2010-01-27 17:29 /usr/lib32/libGLU.so.1 -> libGLU.so.1.3.070700
-rw-r--r-- 1 root root 456380 2010-01-20 13:55 /usr/lib32/libGLU.so.1.3.070700
folk@folk:~/Programs/wine-git$

Revision history for this message
Alberto Milone (albertomilone) wrote :

Please try the following commands:

sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/libGL.so
sudo ldconfig

Then try to compile wine again. If it still doesn't work, please attach the output of "ldconfig -p | grep GL" and of "ls -l /usr/lib32/* | grep GL"

Revision history for this message
Vidar Braut Haarr (vhaarr+launchpad) wrote :

Works now!

Revision history for this message
Alberto Milone (albertomilone) wrote :

Ok, it's easy to fix then. I'll deal with it

affects: wine (Ubuntu) → ia32-libs (Ubuntu)
Changed in ia32-libs (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
3vi1 (launchpad-net-eternaldusk) wrote :

Thanks for the speedy workaround, Alberto. I ran into this too, and adding the link cleared it up for me as well.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ia32-libs - 2.7ubuntu19

---------------
ia32-libs (2.7ubuntu19) lucid; urgency=low

  * Freshen packages.
  * Add symlink to libGL.so for Wine building (LP: #513554)
 -- Scott Ritchie <email address hidden> Tue, 02 Feb 2010 13:58:28 -0800

Changed in ia32-libs (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Scott Ritchie (scottritchie) wrote :

I happened to be at the Cisco offices today with some very fast internet so I did this one since I know how much of a hassle uploading ia32-libs source packages can be.

Revision history for this message
dtaylor84 (davidt-launchpad) wrote :

The updated wine package was rebuilt against the old version of ia32-libs again - it needs another rebuild to pick up this version.

Revision history for this message
Lemmiwinks (lemmiwinks) wrote :

Is it possible, that it does not work anymore? I installed the latest nvidia driver with the nvidia installer, not using the package and it works flawlessly. When I run a game in wine it always says that direct rendering is not enabled and so on, see terminal output...

using Ubuntu 10.04 64bit

Changed in ia32-libs (Ubuntu):
status: Fix Released → Incomplete
Revision history for this message
Lemmiwinks (lemmiwinks) wrote :

I don't know what solved my problem, but it's gone now. Maybe the reinstall of directx helped...

Changed in ia32-libs (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Lemmiwinks (lemmiwinks) wrote :

Found out, that I installed the wrong nvidia driver, the one which does not contain any 32 bit libraries. To anybody else having problems with 64-bit + wine, remember to chose the installer file that ends with -pkg2.run when you don't want to use the packages that come with your distribution.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.