Hi, For the past 3 months I have been trying to get wine working well, but have hit several obstacles. I am on a Mac 10.5.7, using X11 2.3.3.2 from Xquartz, and using Kroneberg's Darwine builds. The issues: I can't seem to get OpenGL working or DirectX. I sometimes have problems where I launch an exe, and the program runs as if it cannot "see" any other files in the same folder. This means some programs seem to not launch correctly. Does anybody have a setup/config that they have tried on OS X where everything is working, and could they describe this to me? Thanks. pinchies
pinchies wrote about {Wine] DarWine & OpenGL> >Hi, >For the past 3 months I have been trying to get wine working well, but have hit several obstacles. >I am on a Mac 10.5.7, using X11 2.3.3.2 from Xquartz, and using Kroneberg's Darwine builds.One item, Mike builds for Tiger, not Leopard. I have built on Leopard and will, again, attempt to get the file uploaded to the same site that hosts Mike's builds.>The issues: >I can't seem to get OpenGL working or DirectX.This is a shortcoming of OpenGL on Tiger (you cannot install XQuartz builds on Tiger from what I gather on the XQuartz site that has the OpenGL fixes and server updates.)>I sometimes have problems where I launch an exe, and the program runs as if it cannot "see" any other > files in the same folder. This means some programs seem to not launch correctly.How are you launching the programs? Through a link or by changing to the install directory and then launching through Finder? The suggested method is to use terminal and then lauch using the wine <program.exe> command and this is outlined in the Wine FAQs as well.> >Does anybody have a setup/config that they have tried on OS X where everything is working, and could >they describe this to me?I've installed Fink and loaded the dependencies needed to build Wine. I then used Mike's build environment to build Wine on Leopard. I then installed it and ran Final Doom (which crashed with Mike's builds.) The program ran well once I set it up to use Windowed mode (it ran but was real ugly in full screen mode.) Hope this helps solve your Wine on MacOSX difficulties. James McKenzie
pinchies wrote:> Hi, > For the past 3 months I have been trying to get wine working well, but have hit several obstacles. > I am on a Mac 10.5.7, using X11 2.3.3.2 from Xquartz, and using Kroneberg's Darwine builds. > The issues: > I can't seem to get OpenGL working or DirectX. > I sometimes have problems where I launch an exe, and the program runs as if it cannot "see" any other files in the same folder. This means some programs seem to not launch correctly. > >You are going to have to 'roll your own' as Mike is still building for Tiger (10.4.11) and I don't think that XQuartz 2.3.3 will install on this platform. This would eliminate the need for his OpenGL 'hack' and allow the full use of OpenGL functions currently supported by Wine.> Does anybody have a setup/config that they have tried on OS X where everything is working, and could they describe this to me? > >I do. I have installed Fink to grab the Required Dependencies, I am using the build env that Mike has so graciously supplied and I installed and upgraded XCode from the Leopard DVD. You will also have to get the X11 Software Development Kit (X11SDK) from the DVD and install it. Mike's builds may not require the use of Fink or MacPorts to build, but I had already installed Fink for OpenOffice.org X11 (I go WAY back on that project.) Please read through the Wine on MacOSX Wiki page for more information. James McKenzie
Thanks James, this helped a lot! I have more to try (I made a test 10.5.7 enviroment to play in), but first I have three questions: 1. is there any difference between the fink and macports builds? 2. can fink and macports be installed at the same time? 3. are you using leopard or tiger? I also think that there is a bug in Xquartz somewhere, as with the latest build 2.3.3.2 sometimes the $Display variable changes randomly, resulting in wine complaining of errors that it cant find the screen. I look forward to any build you upload!
I have edited my last post with further Darwine/wine questions. Thanks, pinchies
On Tue, May 26, 2009 at 08:26:12AM -0500, pinchies wrote:> I have edited my last post with further Darwine/wine questions. > Thanks, > pinchiesSince the forum is tied to the mailing list this is the wrong thing to do. It will not resend edited posts to the mailing list so anyone that just uses the ML and not the forum will not see your additional questions. Recommend you add them in a separate reply to your original question. -- Darragh "Nothing is foolproof to a sufficiently talented fool."
*reposting my current unsolved problems: I think that there is a bug in Xquartz or winehelper somewhere, as with the latest build 2.3.3.2 sometimes the $Display variable changes randomly, resulting in wine complaining of errors that it cant find the screen. Wine used to crash occasionally, but it would never give this error, and would normally reconnect back to X11 easily. "Application tried to create a window, but no driver could be loaded. Make sure that your X server is running and that $DISPLAY is set correctly." I can bypass this error by using "$ var" and putting the $display manually into winehelper. ***I also have one final problem - and I have checked the FAQ. *** Some programs complain that their resources are missing, and seem to be looking in "winehelper.app/contents/resources/" instead. This error is mentioned here: http://forum.winehq.org/viewtopic.php?t=4614 Is there a solution anyone knows of?
The error is not so much the $display changing, it was winehelper not being able to reconnect. The workaround was also only a temporary one, to avoid a reboot, which seems to fix the problem. I will have a go at compiling from source when I have time, it sounds like it fixes quite a few common problems. Thanks for your help guys. I will keep trying.
Thunderbird <wineforum-user at winehq.org> wrote about [Wine] Re: DarWine & OpenGL> >I'm seeing the same issue with the Display variable. In my case I'm just launching Wine from the menu and let e.g. winehelper launch programs. The app I'm working on still crashes frequently on the Mac and when I try to restart the (it shows a nice backtrace in the error) I get the mentioned error. Quitting winehelper and restarting the Xserver fixes the issues. >Does the X server crash as well? This may be why wineserver cannot start the program a second time. Thus you have to restart wineserver to pick up the new DISPLAY location. Again, the change in location is a security feature. James McKenzie
The Xserver stays around I think (I had to kill it explicitly by tabbing to it and then closing it). I can check again next week when I'm back behind the mac.
Thunderbird wrote about [Wine] Re: DarWine & OpenGL> >The Xserver stays around I think (I had to kill it explicitly by tabbing to it and then closing it). I can check again next week when I'm back behind the mac. >Then the DISPLAY variable should stay the same. While you are back behind the Mac, open a second terminal session and cd to the /tmp directory. When the program crashes, refresh the directory. See if the directory created by X disappears or changes. This should not happen and needs to be reported as a bug to both Apple and the XQuartz folks for resolution. James McKenzie
I have been doing some experimenting and at this point I can't reproduce the issue. How is wine receiving the DISPLAY variable? I tried launching apps using Finder (it uses winehelper). I guess this tool is somehow providing wine 'sessions' with the DISPLAY variable? Is anyone using wine from source on osx? I would like to just use the darwine build scripts and then use my own wine dev tree and launch apps from the console or so. By default a lot of libraries can't be found that way. I guess I should install the needed libs in a directory which is in the library path and then run wine.. Not sure what the best way on OSX is yet (I'm a Linux user and have to use OSX for some app now). Roderick