wine 2.1 NO OpenGL library

Questions about Wine on Linux
Locked
Nihilist
Level 2
Level 2
Posts: 10
Joined: Wed Nov 02, 2011 7:37 pm

wine 2.1 NO OpenGL library

Post by Nihilist »

Hello,

this is not a "real" wine issue, I already dropped some lines on the German Debian forums,
but it still hurts me: When trying to compile the latest wine I receive the following message:

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

I use the latest Debian stretch, source downloaded from winehq (2.1), all duild-dep are
installed. But I'm struggling finding the source of this message, the only thing I see is:

checking for -lGL... not found
checking for -lGL... not found

Any idea which libs this is pointing to? I installed all system drivers for my graphics card,
NVIDIA GTX 970, first the NVIDIA driver, then the system installed the built-in ones (not
nouveau, thy are blacklisted): nvidia-installer, nvidia-xconfig etc... everything that came
from the package manager. The installer from NVIDIA now no longer works, everything
is now directly handled by the package manager.

Thanks for reading, any help higly appreciated :)

Michael
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine 2.1 NO OpenGL library

Post by dimesio »

It's unclear to me how you installed your Nvidia drivers. It sounds like you installed both the .run file and a distro package. You shouldn't do that.

The library configure is looking for is libGL. If you're on a 64 bit system, what you're most likely missing is 32 bit libGL. The .run file asks if you want to install the 32 bit drivers, and you should have said yes.
Nihilist
Level 2
Level 2
Posts: 10
Joined: Wed Nov 02, 2011 7:37 pm

Re: wine 2.1 NO OpenGL library

Post by Nihilist »

First I installed the original ones. Then, after an upgrade, it referred to the internal ones,
and uninstalled the ones that came from NVIDIA by itself. Since this, I can not re-install the
ones from NVIDIA, it just wont let me. And since then, I got the error message about libGL!

Its 32bit...and libGL is installed!

Michael
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine 2.1 NO OpenGL library

Post by dimesio »

Nihilist wrote:First I installed the original ones.
Do you mean the .run file from Nvidia, or a package installed through your package manager?
Then, after an upgrade, it referred to the internal ones,
and uninstalled the ones that came from NVIDIA by itself.

What is "it" and what are the "internal ones"?
Since this, I can not re-install the
ones from NVIDIA, it just wont let me.
What is "it"? Your package manager? The .run file? What is the exact error message?
Nihilist
Level 2
Level 2
Posts: 10
Joined: Wed Nov 02, 2011 7:37 pm

Re: wine 2.1 NO OpenGL library

Post by Nihilist »

dimesio wrote:
Nihilist wrote:First I installed the original ones.
Do you mean the .run file from Nvidia, or a package installed through your package manager?

-> The run file from NVIDIA was the first one I tried.
Then, after an upgrade, it referred to the internal ones,
and uninstalled the ones that came from NVIDIA by itself.


What is "it" and what are the "internal ones"?

"it" means Synaptic package manager. It announced newer files,
and automatically uninstalled the .run files from NVIDIA and
used the ones provided by Debian obviously.
Since this, I can not re-install the
ones from NVIDIA, it just wont let me.
What is "it"? Your package manager? The .run file? What is the exact error message?
The NVIDIA installer exits with the message "please uninstall the packages".

But right now, I tried to export and reinstall all installed packages, maybe there are links
broken. I'll report!

Thank you so far!

Michael
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine 2.1 NO OpenGL library

Post by dimesio »

Nihilist wrote: "it" means Synaptic package manager. It announced newer files,
and automatically uninstalled the .run files from NVIDIA and
used the ones provided by Debian obviously.
Your package manager can't properly uninstall anything that was manually installed. If you want to switch to a distro package, you need to first manually uninstall the .run file before installing the package. You do this by re-running the .run file with the --uninstall switch, then reboot before trying to install the packaged driver.
Nihilist
Level 2
Level 2
Posts: 10
Joined: Wed Nov 02, 2011 7:37 pm

Re: wine 2.1 NO OpenGL library

Post by Nihilist »

The package manager runs the original install script with --uninstall option. But this alone
did not solve it. I needed to manually re-install all packages found with keyword "libgl",
this solved the issues!

BR
Michael
Locked