Wine OpenGL Directory? (iPixelFormat)

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
BCable
Level 1
Level 1
Posts: 7
Joined: Sun Oct 18, 2009 12:42 pm

Wine OpenGL Directory? (iPixelFormat)

Post by BCable »

I'm running 64-bit Debian with package: wine_1.1.31~winehq1-1_amd64.deb

Wine seems to not be able to access OpenGL, and talks about not knowing what iPixelFormat is.

These are example outputs of what I'm talking about:

Code: Select all

err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
err:d3d:InitAdapters Failed to get a gl context for default adapter
err:d3d:WineDirect3DCreate Direct3D8 is not available without opengl
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x181038,0x171268): stub
fixme:winmm:MMDRV_Exit Closing while ll-driver open

Code: Select all

   1.
      No files to extracterr:wgl:internal_SetPixelFormat Invalid iPixelFormat: 0
   2.
      err:wgl:X11DRV_wglCreateContext Cannot get FB Config for iPixelFormat 0, expect problems!
   3.
      err:wgl:is_extension_supported No OpenGL extensions found, check if your OpenGL setup is correct!
   4.
      err:wgl:is_extension_supported No OpenGL extensions found, check if your OpenGL setup is correct!
   5.
      err:wgl:is_extension_supported No OpenGL extensions found, check if your OpenGL setup is correct!
   6.
      err:wgl:is_extension_supported No OpenGL extensions found, check if your OpenGL setup is correct!
   7.
      err:wgl:is_extension_supported No OpenGL extensions found, check if your OpenGL setup is correct!
   8.
      err:wgl:is_extension_supported No OpenGL extensions found, check if your OpenGL setup is correct!
   9.
      err:wgl:is_extension_supported No OpenGL extensions found, check if your OpenGL setup is correct!
  10.
      err:wgl:is_extension_supported No OpenGL extensions found, check if your OpenGL setup is correct!
  11.
      err:wgl:is_extension_supported No OpenGL extensions found, check if your OpenGL setup is correct!
  12.
      err:wgl:is_extension_supported No OpenGL extensions found, check if your OpenGL setup is correct!
  13.
      err:wgl:is_extension_supported No OpenGL extensions found, check if your OpenGL setup is correct!
  14.
      err:wgl:is_extension_supported No OpenGL extensions found, check if your OpenGL setup is correct!
  15.
      err:wgl:is_extension_supported No OpenGL extensions found, check if your OpenGL setup is correct!
  16.
      wine: Unhandled page fault on read access to 0x00000000 at address 0xf7d14a80 (thread 001e), starting debugger...
  17.
      Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0xf7d14a80).
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

Most likely you don't have proper 32-bit opengl libraries around.
BCable
Level 1
Level 1
Posts: 7
Joined: Sun Oct 18, 2009 12:42 pm

Post by BCable »

After reading both:

http://www.winehq.org/download/deblenny
http://wiki.winehq.org/WineOn64bit

...and then digging though apt:

Code: Select all

root@dalek:/home/grml# apt-get install ia32-libgl1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ia32-libgl1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ia32-libgl1 has no installation candidate

root@dalek:/home/grml# apt-get install ia32-wine
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ia32-wine is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ia32-wine has no installation candidate

root@dalek:/home/grml# apt-get install ia32-libgl1-mesa-glx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ia32-libgl1-mesa-glx is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  ia32-libs
E: Package ia32-libgl1-mesa-glx has no installation candidate

I have ia32-libs installed, but it's weird that these fake packages exist (especially the ia32-wine one) but don't have anything to install...

It definitely is a 32-bit binary though, which is odd to me since it's a 64-bit package:

Code: Select all

root@dalek:/home/grml# file `which wine`
/usr/bin/wine: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
Any specific libraries that I might need? Her'es a list from apt:

Code: Select all

ia32-fglrx-driver
ia32-fglrx-glx
ia32-freeglut3
ia32-lesstif2
ia32-libacl1
ia32-libaio1
ia32-libartsc0
ia32-libasound2
ia32-libasyncns0
ia32-libattr1
ia32-libaudio2
ia32-libaudiofile0
ia32-libc6
ia32-libcairo2
ia32-libcap2
ia32-libcapi20
ia32-libcapi20-3
ia32-libcomerr2
ia32-libcups2
ia32-libdbus-1-3
ia32-libdirectfb-1.2-0
ia32-libdrm2
ia32-libesd0
ia32-libesd-alsa0
ia32-libexif12
ia32-libexpat1
ia32-libfltk1.1
ia32-libfontconfig1
ia32-libfreetype6
ia32-libgcc1
ia32-libgcrypt11
ia32-libgl1
ia32-libgl1-mesa-dri
ia32-libgl1-mesa-glx
ia32-libglu1
ia32-libglu1-mesa
ia32-libgnutls26
ia32-libgpg-error0
ia32-libgphoto2-2
ia32-libgphoto2-port0
ia32-libgsm1
ia32-libgssapi-krb5-2
ia32-libhal1
ia32-libice6
ia32-libieee1284-3
ia32-libjack0
ia32-libjpeg62
ia32-libk5crypto3
ia32-libkeyutils1
ia32-libkrb5-3
ia32-libkrb5support0
ia32-liblcms1
ia32-libldap-2.4-2
ia32-libltdl7
ia32-liblzo2-2
ia32-libmpg123-0
ia32-libncurses5
ia32-libnss-ldap
ia32-libpam0g
ia32-libpam-ldap
ia32-libpng12-0
ia32-libpopt0
ia32-libpulse0
ia32-libs
ia32-libsane
ia32-libsasl2-2
ia32-libs-dev
ia32-libsdl1.2debian-alsa
ia32-libselinux1
ia32-libs-gtk
ia32-libsigc++-2.0-0c2a
ia32-libsm6
ia32-libs-openoffice.org
ia32-libssl0.9.8
ia32-libstdc++5
ia32-libsvga1
ia32-libtasn1-3
ia32-libtiff4
ia32-libusb-0.1-4
ia32-libuuid1
ia32-libwmf0.2-7
ia32-libx11-6
ia32-libx86-1
ia32-libxau6
ia32-libxaw7
ia32-libxcb1
ia32-libxcb-render0
ia32-libxcb-render-util0
ia32-libxcomposite1
ia32-libxcursor1
ia32-libxdamage1
ia32-libxdmcp6
ia32-libxext6
ia32-libxfixes3
ia32-libxft2
ia32-libxi6
ia32-libxinerama1
ia32-libxml2
ia32-libxmu6
ia32-libxmuu1
ia32-libxp6
ia32-libxpm4
ia32-libxrandr2
ia32-libxrender1
ia32-libxslt1.1
ia32-libxss1
ia32-libxt6
ia32-libxtrap6
ia32-libxtst6
ia32-libxv1
ia32-libxxf86vm1
ia32-odbcinst1debian1
ia32-sun-java6-bin
ia32-sun-java6-plugin
ia32-unixodbc
ia32-wine
ia32-xaw3dg
ia32-zlib1g
Thanks!
BCable
Level 1
Level 1
Posts: 7
Joined: Sun Oct 18, 2009 12:42 pm

Post by BCable »

I just tried to install them all just in case, but it didn't install anything because I think ia32-libs covers all of those packages already.

Somewhere I was reading about OpenGL fallback paths on darwine. It sounded really similar to my problem, but I don't know if the Linux version has anything like that...
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

You need a 32-bit opengl driver for your videocard. This means that when you use an nvidia card you need their 32-bit libGL, in case of ati you need 32-bit fglrx and in most other cases mesa.
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

BCable wrote:I just tried to install them all just in case, but it didn't install anything because I think ia32-libs covers all of those packages already.

Somewhere I was reading about OpenGL fallback paths on darwine. It sounded really similar to my problem, but I don't know if the Linux version has anything like that...
I dunno about Linux... it has some type of LD_LIBRARY_PATH thing thats called DYLD_LIBRARY_PATH on OSX... OSX also has a DYLD_FALLBACK_LIBRARY_PATH as extra for a just n case it cant find it in the main places, and its very helpful.... if Linux has something similar, it might help you out.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

doh123 wrote:I dunno about Linux... it has some type of LD_LIBRARY_PATH thing thats called DYLD_LIBRARY_PATH on OSX... OSX also has a DYLD_FALLBACK_LIBRARY_PATH as extra for a just n case it cant find it in the main places, and its very helpful.... if Linux has something similar, it might help you out.
If a Linux distro needs any of those hacks to find standard system libraries it's broken.

Here OP doesn't have 32-bit video driver libraries installed at all. Keep in mind some early Nvidia 190.x drivers missing these libraries.
BCable
Level 1
Level 1
Posts: 7
Joined: Sun Oct 18, 2009 12:42 pm

Post by BCable »

I managed to fix it. Here's what was wrong.

I use nvidia drivers, so I needed the nvidia-glx-ia32 package to get this working. I had already tried this and it just segfaulted so I assumed I was doing it wrong.

What I really needed was not only nvidia-glx-ia32, but also libc6-i386 to get the 32-bit nvidia-glx to work correctly (I only figured this out because the packages.debian.org page had that library marked as "related", and not a dependency nor even a suggestion... weird).

Everything is working flawlessly now :). Thanks for the help!
Locked