Jump to content
InsanelyMac Forum
Sign in to follow this  
torncanvas

OpenGL apps with Darwine 0.9.7

Recommended Posts

I have a Macbook Pro 2.0 Ghz and I'm happy to say that Darwine works! Thanks for the advice in the other threads - I had to create a /usr/local and link /tmp/wine_root.

 

Currently, we're developing a game here and we can't support the Mac due to some 3rd party middleware - yet. I'd like to try to get our game tools running on my Macbook Pro so I can start building our levels.

 

I've seen some conflicting views on whether Darwine is the best solution or whether WINE for Mactel is the best one. Honestly, the whole thing is pretty confusing and hard to follow going through the forums. So which is it?

 

Does anyone have any advice/tips? I'm going to just try it straight up with the DLLs in the same dir and see if it goes. Is that the right way to do it at first? I'm pretty new to this whole WINE thing.

 

Oh, and if anyone can help me out, I promise pretty pictures. :)

Share this post


Link to post
Share on other sites
Advertisement

Alright, gave it a shot and came up with this:

 

wine: Call from 0x5ed09ec5 to unimplemented function KERNEL32.dll.IsWow64Process, aborting

wine: Unimplemented function KERNEL32.dll.IsWow64Process called at address 0x5ed09ec5 (thread 0009), starting debugger...

 

EDIT: This seems to be an OpenGL error that has been posted in other WINE forums. Someone mentioned something about commenting out something in a configure script to get OpenGL working. Does this involve me compiling Darwine?

Share this post


Link to post
Share on other sites

So I read up a little bit more about Darwine. If I'm going to compile, I need to check out wine source from WineHQ right? Since there isn't a fork for wine source specifically related to Darwine, right?

 

And what line do I need to comment out in the config script?

Share this post


Link to post
Share on other sites

Well, for your pleasure, I'm compiling now a build of darwine with OpenGL *and* FreeType support, which I should be releasing either today or tomorrow if the compilations succeeds (and it seems to be working pretty well so far!)

Share this post


Link to post
Share on other sites

That would be awesome. How does one set up a build of Darwine? I've been trying to compile wine here on my Macbook Pro and I don't think OpenGL worked, plus I got this error that said I needed to implement get/set_thread_context_ptrace. I'm assuming that I need to apply a patch. A patch is mentioned on the darwine-devel, but I don't have much experience with applying patches.

 

EDIT:

http://sourceforge.net/tracker/index.php?f...890&atid=526089

 

That what you're looking for?

Share this post


Link to post
Share on other sites

Well, I already knew of that patch, and it wasn't working with Wine CVS. However, I fixed the patch, and it's building again. Now I'm very hopeful :(

Share this post


Link to post
Share on other sites

okay, problem again. it seems that Apple X11 doesn't like OpenGL apps. Back to square one?

pu7os-computer:~/.wine/drive_c/Program Files/gens puto$ wine gens+.exe

X Error of failed request: BadValue (integer parameter out of range for operation)

Major opcode of failed request: 129 (Apple-DRI)

Minor opcode of failed request: 2 ()

Value in failed request: 0x57

Serial number of failed request: 100

Current serial number in output stream: 100

Share this post


Link to post
Share on other sites

Sure, have a go: here you go. You need to have Darwine 0.9.7 installed in the first place if you don't want to launch wine through the X11 Terminal. I didn't try it with darwine at all.

Share this post


Link to post
Share on other sites
okay, problem again. it seems that Apple X11 doesn't like OpenGL apps. Back to square one?

 

Scratch that. Gens+ doesn't even use OpenGL, and it runs fine with the darwine GUI. I need to find an actual opengl app to test this thing.

Share this post


Link to post
Share on other sites

Here's what I get running from the command line:

...

err:opengl:process_attach X11DRV not loaded. Cannot create default context.

...

 

I haven't tried using WineHelper yet - I can't get to the wine binary in the preferences since it's in a bundle. :)

 

 

EDIT:

Oh, yeah, duh, we need to copy the contents of the Wine.bundle into /usr/local. And then link to /tmp/wine_root

 

I need a way to get the WineHelper preferences to point back to /usr/local/bin/wine. Bah...

 

Ok, there we go, now I'm getting the same thing:

 

Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
X Error of failed request:  BadValue (integer parameter out of range for operation)
 Major opcode of failed request:  129 (Apple-DRI)
 Minor opcode of failed request:  2 ()
 Value in failed request:  0x57
 Serial number of failed request:  100
 Current serial number in output stream:  100
??????????????

 

FreeType isn't working tho - where does that stuff go by default?

Share this post


Link to post
Share on other sites

try it like this:

LD_LIBRARY_PATH=/usr/X11R6/lib /Applications/Darwine/WineHelper.app/Contents/MacOS/WineHelper

(in the terminal)

 

edit: nope, that didn't work either. it seems this only works when wine is invoked from the command line or something...

 

Assuming that like everyone, you installed mirc as your test app, try something like this:

 

$ cd /Applications/Darwine/Wine.bundle/Contents/bin
pu7os-computer:/Applications/Darwine/Wine.bundle/Contents/bin puto$ export LD_LIBRARY_PATH=/usr/X11R6/lib DISPLAY=:0
pu7os-computer:/Applications/Darwine/Wine.bundle/Contents/bin puto$ ./wine /Users/puto/.wine/drive_c/Program\ Files/mIRC/mirc.exe

 

 

Well, I'm off to bed, I'll try more tomorrow.

Share this post


Link to post
Share on other sites

I googled that Apple-DRI error and it looks like anarkhos was getting similar problems with OpenGL way back in June (found in darwine-devel list archives). Maybe he can help us out?

 

$ cd /Applications/Darwine/Wine.bundle/Contents/bin
pu7os-computer:/Applications/Darwine/Wine.bundle/Contents/bin puto$ export LD_LIBRARY_PATH=/usr/X11R6/lib DISPLAY=:0
pu7os-computer:/Applications/Darwine/Wine.bundle/Contents/bin puto$ ./wine /Users/puto/.wine/drive_c/Program\ Files/mIRC/mirc.exe

Well, I'm off to bed, I'll try more tomorrow.

 

Well, adding those two env vars makes the command line error the same as the one from WineHelper. So I guess that's good?

 

Hey, by the way, thanks a lot for your help. :P

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.



×