Gentoo, wine missing opengl libs? [solved]

Gentoo: [more]Gentoo: [more]I became curious about an ASCII Dungeon Keeper - like game called Dwarf Fortress, on the weekend. From forum discussions, and the games website, it looks quite complex and quirky. I had to try it out. I'm running it under wine, on my Gentoo box. Turns out we need OpenGL support in wine for this to work...

My first roadblock was that there's no source (that I could see), and just Windows and Mac binaries. Of course, I expect Wine to come to the rescue.

I was quite surprised, then, when I found that it needed opengl, despite (from the screenshots) being text-graphic based.

~/.wine/drive_c/games/DF $ wine dwarfort.exe 
err:module:import_dll Library OPENGL32.dll (which is needed by L"C:\\games\\DF\\dwarfort.exe") not found
err:module:import_dll Library GLU32.dll (which is needed by L"C:\\games\\DF\\dwarfort.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\games\\DF\\dwarfort.exe" failed, status c0000135

The problem here is that I'd emerged wine without the opengl use flag, and so I didn't have either of:

/usr/lib/wine/opengl32.dll.so
/usr/lib/wine/glu32.dll.so

Emerging again, after setting the use flag in /etc/portage/package.use fixed the problem

# echo "app-emulation/wine opengl" >> /etc/portage/package.use
# emerge -pv wine
# emerge wine

These libraries (<span style="font-weight: bold;">opengl32.dll</span> and <span style="font-weight: bold;">glu32.dll</span>) are graphics libraries, which are typically implemented by video card vendors (or emulation layer providers), and should conform to the Open standard. <span style="font-weight: bold;">Glu32.dll</span> provides extensions to the base OpenGL libraries such as NURBs, surfaces, mipmaps and cylinders. If you're interested in how these pieces fit together, fire up <span style="font-weight: bold;">vi</span>, and point it to these two:

/usr/include/GL/gl.h
/usr/include/GL/glu.h

Here's the Dwarf Fortress (by Bay 12 Games) homepage: http://www.bay12games.com/dwarves/

dwarf fortress screenshotdwarf fortress screenshot

Reply

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.