Starcraft II 1.1.2: Cannot load libGL

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
QuadraticFighter
Newbie
Newbie
Posts: 2
Joined: Wed Oct 20, 2010 3:49 pm

Starcraft II 1.1.2: Cannot load libGL

Post by QuadraticFighter »

Hey everybody, I tried Googling specific problems with this but could not find any. I was working under wine1.3.4 when Starcraft II was in 1.1.1, but after successfully installing the patch 1.1.2 (for Starcraft II that is), I am unable to start the game, and it officially complains about DirectX not being installed. However, that's not true as we all know...

The terminal output is as follows:

Code: Select all

xxx@xxx-laptop:~/.wine/drive_c/Program Files/StarCraft II$ wine StarCraft\ II.exe
fixme:process:GetLogicalProcessorInformation ((nil),0x32c86c): stub
[b]err:wgl:has_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory[/b]
err:wgl:has_opengl OpenGL support is disabled.
err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
err:d3d:InitAdapters Failed to get a gl context for default adapter
Direct3D9 is not available without OpenGL.
[Irrelevant wininet nonsense omitted]
The error seems straight forward: we can't find libGL.so.1. But then the output of locate libGL is

Code: Select all

locate libGL
[...]
/usr/lib/libGL.la
/usr/lib/libGL.so
[b]/usr/lib/libGL.so.1[/b]
/usr/lib/libGL.so.260.19.12
[...]
I had a look at winecfg, but I don't see any place where I can point wine to /usr/lib/libGL.so.1

Could someone please tell me what I am doing wrong? Thanks.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Starcraft II 1.1.2: Cannot load libGL

Post by vitamin »

QuadraticFighter wrote: err:wgl:has_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory
/usr/lib/libGL.so
What do 'file /usr/lib/libGL.so', file /usr/lib/libGL.so.1', and 'file /usr/lib/libGL.so.260.19.12' say?
QuadraticFighter
Newbie
Newbie
Posts: 2
Joined: Wed Oct 20, 2010 3:49 pm

Post by QuadraticFighter »

Nevermind, I solved my issue. The problem was I guess I didn't have the 32-bit compatibility drivers that come with the Linux redistributable on those 260.19.12 drivers. I simply reinstalled the drivers, and selected "yes" when prompted to install the 32-bit compatibility stuff. I didn't realize that was critical.

Still, that's kind of a confusing problem to have since /usr/lib/libGL.so.1 was already present on the system. BTW, sorry, I am not sure what you mean by "what do they say?" Do you mean the "nm" or "objdump" of that?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

QuadraticFighter wrote:I am not sure what you mean by "what do they say?" Do you mean the "nm" or "objdump" of that?
I meant these commands:

Code: Select all

file /usr/lib/libGL.so
file /usr/lib/libGL.so.1
file /usr/lib/libGL.so.260.19.12
Locked