Jump to content

OpenGL apps with Darwine 0.9.7


  • Please log in to reply
17 replies to this topic

#1
torncanvas

torncanvas

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 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. :)

#2
torncanvas

torncanvas

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 posts
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?

#3
torncanvas

torncanvas

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 posts
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?

#4
Pu7o

Pu7o

    InsanelyMac Sage

  • Donators
  • 351 posts
Well, you're already luckier than me. I haven't managed to run darwine on my iMac Core Duo. at all.

#5
torncanvas

torncanvas

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 posts
What have you done so far? I might be able to help.

#6
Pu7o

Pu7o

    InsanelyMac Sage

  • Donators
  • 351 posts
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!)

#7
Pu7o

Pu7o

    InsanelyMac Sage

  • Donators
  • 351 posts
okay, scratch that... I can't find the darwine patch for context_i386.c

#8
torncanvas

torncanvas

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 posts
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.n...890&atid=526089

That what you're looking for?

#9
Pu7o

Pu7o

    InsanelyMac Sage

  • Donators
  • 351 posts
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 :(

#10
Pu7o

Pu7o

    InsanelyMac Sage

  • Donators
  • 351 posts
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



#11
torncanvas

torncanvas

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 posts
So you at least got it to build? If so, I could give it a shot. :)

#12
Pu7o

Pu7o

    InsanelyMac Sage

  • Donators
  • 351 posts
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.

#13
torncanvas

torncanvas

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 posts

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


A quartzdrv issue?

#14
Pu7o

Pu7o

    InsanelyMac Sage

  • Donators
  • 351 posts
From what I read, quartzdrv is nowhere near usable.

#15
Pu7o

Pu7o

    InsanelyMac Sage

  • Donators
  • 351 posts

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.

#16
torncanvas

torncanvas

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 posts
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?

#17
Pu7o

Pu7o

    InsanelyMac Sage

  • Donators
  • 351 posts
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.

#18
torncanvas

torncanvas

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 posts
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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy