Trying to run Spelunky: OpenGL, Mac OS X and Wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
magicthread
Newbie
Newbie
Posts: 3
Joined: Fri Jan 16, 2009 3:31 pm

Trying to run Spelunky: OpenGL, Mac OS X and Wine

Post by magicthread »

Hi. I'm an OS X user trying to run a freeware GameMaker game with Wine, and I'm running into some trouble. The game is called Spelunky(a combination roguelike and platformer—two great tastes that taste great together!). Whenever I attempt to run it with Wine, I come across a couple of errors:

err:dmloader:IDirectMusicLoaderImpl_IDirectMusicLoader_SetObject : could not attach stream to file

err:wgl:has_opengl glx_version is 1.2 and GLX_SGIX_fbconfig extension is unsupported. Expect problems.

Upon this last error, a dialog box comes up in wine (while the game is still loading) saying "Unexpected error occured(sic) when running the game." After clicking Okay in the dialog box, Spelunky exits and so does wine. I get the err:wgl:has_opengl error when attempting to play other games as well (like ikachan, which doesn't trigger an error in the Windows environment but freezes nonetheless and causes Wine to start the debugger).

The only seemingly immediately relevant info I can find is this, from
http://forum.winehq.org/viewtopic.php?p=15227 :
Zach wrote:OS X's X11 doesn't support GLX 1.3 right now (Which is the minimum version that Wine requires in order to run stuff with OpenGL). So even if you did get it working, you wouldn't be able to get the game to run.
I uninstalled apple's X11 and intsalled XQuartz via macports, and have tried both wine and wine-devel via MacPorts, but both turn up the same errors. I'm still fairly inexperienced with the ins and outs of the terminal and how to compile things but I know enough of the basics to at least get this far (other, non-opengl things work great at least)

The Wine FAQ states
What does Wine on Mac OS X support? (DirectX, DirectSound, Direct3D...)
Sound should be working just fine since Wine release 0.9.15. 3D (OpenGL Support) is disabled because of a bug in Apple X11, if you want OpenGL Support turned on refer to the Wine Mac OS X Package Creation Page.
and links to http://wiki.winehq.org/MacOSX/Building , which makes no mention of how to turn on OpenGL support, but links to the Darwine documentation which doesn't make a mention of OpenGL at all.

So... what should I do? I feel like if I somehow got glx 1.3 this would solve my problem, but I don't know where to start. Is it possible to get opengl support with wine via macports?

Here is my info:

X.org Release 7.3
X.Org X Server 1.4.2-apple31
Build Date: 20090115

wine-1.1.12 built from wine-devel on macports

OS X 10.5.6

most winetricks installed (is there a way I can make a list of which ones are installed? I didn't do the video codecs or apps)

edit: Also I can get a bit farther using Crossover, but it's garbage-level (graphics only work when it's way-zoomed in for some reason, but even when it works properly they're shifted halfway up the screen)

Thanks for your time.
jeffz
Level 5
Level 5
Posts: 345
Joined: Thu Mar 13, 2008 10:03 pm

Re: Trying to run Spelunky: OpenGL, Mac OS X and Wine

Post by jeffz »

magicthread wrote:
edit: Also I can get a bit farther using Crossover, but it's garbage-level (graphics only work when it's way-zoomed in for some reason, but even when it works properly they're shifted halfway up the screen)

Thanks for your time.
If you get Wine to run, you'll find this same result. It appears there is some missing functionality in Wine's d3d implementation, bug 15268 tracks this issue (games produces by Gamemaker).
magicthread
Newbie
Newbie
Posts: 3
Joined: Fri Jan 16, 2009 3:31 pm

Post by magicthread »

Thanks for your response jeffz. That's good to know, at least!
James McKenzie

Trying to run Spelunky: OpenGL, Mac OS X and Wine

Post by James McKenzie »

magicthread wrote:
Hi. I'm an OS X user trying to run a freeware GameMaker game with Wine, and I'm running into some trouble. The game is called Spelunky (available here: http://forums.tigsource.com/index.php?topic=4017.0 ). Whenever attempt to run it with Wine, I come across a couple of errors:

err:dmloader:IDirectMusicLoaderImpl_IDirectMusicLoader_SetObject : could not attach stream to file

err:wgl:has_opengl glx_version is 1.2 and GLX_SGIX_fbconfig extension is unsupported. Expect problems.

If you are using Apple's X11 or the X11 supplied by XQuartz, this is
true. You might be able to build the version available from Xorg, but
you will need a great deal of luck and time. XQuartz states that they
will upgrade OpenGL support with XQuartz 2.4.

There is an issue to track issues with this game builder and Wine as well.

Sorry I don't have better news than this.

James McKenzie
magicthread
Newbie
Newbie
Posts: 3
Joined: Fri Jan 16, 2009 3:31 pm

Post by magicthread »

Thanks for the response James. I guess I should keep better track of the bug tracker, then!
James Mckenzie

Trying to run Spelunky: OpenGL, Mac OS X and Wine

Post by James Mckenzie »

magicthread <[email protected]> wrote:
Thanks for the response James. I guess I should keep better track of the bug tracker, then!

I really wish that I had better news that that. Keep track of the XQuartz project on their site. I really hope that they bring in OpenGL 1.3 before the release of 10.6 (what will it be named, Ocolet?)

James McKenzie
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

We don't require GLX 1.3 at all we only need GLX 1.2 + GLX_SGIX_fbconfig (which is a very standard extension). For some reason XQuartz doesn't offer it while it has been very common for years and iti s really required in our OpenGL implementation.
colleenex
Newbie
Newbie
Posts: 1
Joined: Mon Aug 17, 2009 12:29 am

Post by colleenex »

Can Pearpc or other emulator that can make mac os x run on pc replace my Macintosh? There is a lot of emulators on the internet that can make mac os x run on pc, but is it as good as my real mac? what's the difference? what can a real mac do but emulators can't? how many people are running mac os x on pc? Are these emulators legal?
James McKenzie

Trying to run Spelunky: OpenGL, Mac OS X and Wine

Post by James McKenzie »

colleenex wrote:
Can Pearpc or other emulator that can make mac os x run on pc replace my Macintosh? There is a lot of emulators on the internet that can make mac os x run on pc, but is it as good as my real mac? what's the difference? what can a real mac do but emulators can't? how many people are running mac os x on pc? Are these emulators legal?
Answer to last question: If you are in the United States, no, running
MacOSX is not legal on non-Apple hardware. If you are in Europe, this
is questionable. If you are anywhere else, I don't know.

James McKenzie
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

did you try it under Xquartz 2.4?
James Mckenzie

Trying to run Spelunky: OpenGL, Mac OS X and Wine

Post by James Mckenzie »

did you try it under Xquartz 2.4?
XQuartz 2.4 was released? I thought it still had to go through beta testing.

James McKenzie
Locked