You are not logged in.

#1 2011-05-26 10:23:20

B-80
Member
Registered: 2010-05-05
Posts: 47

[Solved] Starcraft 2 and wine

Hey, I was trying to install SC2 with wine on 64 bit arch, I followed the instructions on the wiki and got SC to install and update all the way, but when I run

wine start Starcraft\ II.exe

This is my output:

$ wine start StarCraft\ II.exe 
fixme:exec:SHELL_execute flags ignored: 0x00000100
[bobak@greed StarCraft II]$ fixme:process:GetLogicalProcessorInformation ((nil),0x33dcd0): stub
Error: API mismatch: the NVIDIA kernel module has version 270.41.06,
but this NVIDIA driver component has version 270.41.19.  Please make
sure that the kernel module and all NVIDIA driver components
have the same version.
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (2000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT/DATA_SEND_TIMEOUT 2000
err:winediag:X11DRV_WineGL_InitOpenglInfo Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly
Error: API mismatch: the NVIDIA kernel module has version 270.41.06,
but this NVIDIA driver component has version 270.41.19.  Please make
sure that the kernel module and all NVIDIA driver components
have the same version.

I read I should install lib32-nvidia-utils(because they were different versions), but this conflicts with lib32-libgl (Which is says to install in the wiki).

When I install lib32-libgl and remove lib32-nvidia-utils I get an error in an alert that says:
"Failed to initialize DirectX. You may need to reinstall DirectX...etc"

Any idea what I should be doing to troubleshoot this?

Thanks for the help in advance guys.

Last edited by B-80 (2011-09-12 05:15:37)

Offline

#2 2011-05-26 10:39:02

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [Solved] Starcraft 2 and wine

but this conflicts with lib32-libgl

And it provides it. Uninstall *libgl and install *nvidia-utils.

You also need to reload the nvidia kernel module so the version in the kernel and of the *utils is the same, which you can only do when X is shut down.

Offline

#3 2011-05-26 11:08:44

B-80
Member
Registered: 2010-05-05
Posts: 47

Re: [Solved] Starcraft 2 and wine

so install nvidia-utils and restart? I believe I already tried that, but I'll do it again, thanks for the reply

Offline

#4 2011-05-29 19:01:36

Marklar
Member
Registered: 2010-06-19
Posts: 36

Re: [Solved] Starcraft 2 and wine

Did you get this working?

I'm having the same problem

pacman -Q nvidia
pacman -Q nvidia-utils
pacman -Q lib32-nvidia-utils

all show the same version

270.41.19-1

But SC2 says it cannot init DirectX

I rebooted into non X environment and ran modprobe nvidia.

I still get the same error.

Offline

#5 2011-05-29 19:07:07

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [Solved] Starcraft 2 and wine

The important part is this:

Error: API mismatch: the NVIDIA kernel module has version 270.41.06,
but this NVIDIA driver component has version 270.41.19.  Please make
sure that the kernel module and all NVIDIA driver components

Before modprobe nvidia you may need to run rmmod nvidia, but rebooting should do. Are you using the default kernel?

Offline

#6 2011-05-29 19:21:29

Marklar
Member
Registered: 2010-06-19
Posts: 36

Re: [Solved] Starcraft 2 and wine

yes, it is the default kernel

I just tried rmmod nvidia before modprobe

Still not working

What command do you run to show you the text that you quoted?

OH i see, nevermind

Last edited by Marklar (2011-05-29 19:22:49)

Offline

#7 2011-05-29 19:26:55

Marklar
Member
Registered: 2010-06-19
Posts: 36

Re: [Solved] Starcraft 2 and wine

My output is different than his

WINEPREFIX=~/.starcraft2/ wine StarCraft\ II.exe
err:wgl:has_opengl Failed to load libGL: libGL.so.1: wrong ELF class: ELFCLASS64
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.
fixme:ddraw:DirectDrawEnumerateExA flags 0x00000003 not handled
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (3000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 3000
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (2000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 2000
[russell@russell-desktop StarCraft II]$ err:module:load_builtin_dll failed to load .so lib for builtin L"winemp3.acm": libmpg123.so.0: cannot open shared object file: No such file or directory
fixme:hnetcfg:fw_profile_get_FirewallEnabled 0x13b8c8, 0x449f0d4
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x449ed5c,0x449ed60): stub
fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
err:wgl:has_opengl Failed to load libGL: libGL.so.1: wrong ELF class: ELFCLASS64
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.

Offline

#8 2011-05-29 19:46:00

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [Solved] Starcraft 2 and wine

I am not sure. There is mention of wrong ELF class which might mean you don't have all the lib32 libraries.

I don't know which one you need. Maybe lib32-mesa? (actually, wine installs that)

Were you able to run SC2 at some point during your install?

http://appdb.winehq.org/objectManager.p … &iId=20882

There is a comment there that gives some lib32 package names

I was crashing due to libjpeg libjpeg.so.8. x86_64 user must install a few packages from the AUR. Here are the ones I installed :
community/lib32-libjpeg 8.0.2-1
local/lib32-libjpeg6 6b-1
local/lib32-libjpeg7 7-1
extra/libjpeg 8.0.2-1
local/libjpeg6 6b-9
local/libjpeg7 7-1

And lib32-openal, and lib32-libldap

Offline

#9 2011-06-03 15:52:08

Marklar
Member
Registered: 2010-06-19
Posts: 36

Re: [Solved] Starcraft 2 and wine

I did try those lib32 packages you listed but no luck

Anyway, I reinstalled Arch, for different reasons, and SC2 works great this time. Not sure what I did differently.

Now I just wait for Nvidia to release a new driver so these silly graphical glitches in SC2 go away.

Offline

Board footer

Powered by FluxBB