Hi wine-devels,
I've got a simple goal. I want to play IL-2 Sturmovik on my Mac without rebooting. This flight sim is gold-rated in the app-db, so this should be a walk in the park, but of course the game does require a joystick. After a bit of poking I realized that there's no support for joysticks under Mac OS. I'm willing to write the code for joystick support, and I've even gotten as far as writing a test app under OS X that enumerates all joysticks and polls their state. I've looked at the linux joystick code in wine and think I can write the equivalent code for OS X.
What I *can't* seem to do is build a wine that can run IL-2. I've had no problem installing and playing the demo using the 1.1.9 build at http://www.kronenberg.org/darwine/ and using crossover games, but when I build wine myself the IL-2 demo installer fails to run. I've tried building the 1.1.9 and 1.1.10 tarballs and using macports to install 1.1.10, all with the same result:
--- begin log output --- Could not load Mozilla. HTML rendering will be disabled. err:wgl:has_opengl glx_version is 1.2 and GLX_SGIX_fbconfig extension is unsupported. Expect problems. wine: configuration in '/Users/n8gray/.wine' has been updated. err:ntdll:RtlpWaitForCriticalSection section 0x7bc8a384 "loader.c: loader_section" wait timed out in thread 0024, blocked by 0023, retrying (60 sec) wine: Unhandled page fault on read access to 0xffffffff at address 0x1017:0x00000c1d (thread 0025), starting debugger... couldn't load main module (2) Unhandled exception: page fault on read access to 0xffffffff in 32-bit code (1017:00000c1d). In 32 bit mode. Register dump: CS:1017 SS:1217 DS:1217 ES:11ef FS:11ff GS:0037 EIP:00000c1d ESP:000056ee EBP:00000000 EFLAGS:00010202( - 00 - -RI1) EAX:00000001 EBX:00000080 ECX:000019b0 EDX:00000001 ESI:00000000 EDI:00001217 Stack dump: 0x1217:0x56ee: f160 7b88 0000 7597 120f 0000 0000 0468 0x1217:0x56fe: 1027 0000 0000 0000 0000 0000 0000 0000 0x1217:0x570e: 0000 0000 0000 0000 0000 0000 0000 0000 023f: sel=11ff base=7eed0000 limit=0000ffff 32-bit rw- Backtrace: =>1 0x1017:0x00000c1d (0x1217:0x0000) 0x1017:0x00000c1d: call 0x0000fffe Modules: Module Address Debug info Name (7 modules) PE 60180000-60184000 Deferred advapi32 PE 60310000-60325000 Deferred user32 PE 604b0000-604b4000 Deferred gdi32 PE 61cc0000-61d0d000 Deferred winmm PE 622a0000-622a4000 Deferred version PE 7b810000-7b889000 Deferred kernel32 PE 7bc10000-7bc14000 Deferred ntdll Threads: process tid prio (all id:s are in hex) 0000000c 0000001f 0 0000001e 0 00000018 0 00000017 0 0000000e 0 0000000d 0 00000010 00000011 0 0000001b 00000021 0 00000020 0 0000001d 0 0000001c 0 00000022 (D) C:\windows\system32\winevdm.exe 00000025 0 <== 00000024 0 00000023 0 Backtrace: =>1 0x1017:0x00000c1d (0x1217:0x0000) err:ntdll:RtlpWaitForCriticalSection section 0x7b92c250 "syslevel.c: Win16Mutex" wait timed out in thread 0023, blocked by 0025, retrying (60 sec) --- end log output ---
If I use Mike's build I only get these messages: wine: created the configuration directory '/Users/n8gray/.wine' Could not load Mozilla. HTML rendering will be disabled. wine: configuration in '/Users/n8gray/.wine' has been updated.
Clearly there's some magic build juju that I don't have, perhaps related to opengl. I've read the wiki, but I haven't found anything that I haven't already tried. Can anybody provide a hint as to how to get this working? BTW, I'm using the latest XQuartz 2.3.2_rc3 (xorg-server 1.4.2-apple27).
Thanks, -n8
Sorry to reply to self, but I forgot to mention I'm running OS X 10.5.5.
I have a few tips for running built wine on OS XI have been working on getting SHOGO to run (I have one more patch to send up) I have made some Apple specific mods to get wine (ogl) workingMost of these are hacks to workaround some issues in X11 (and they got radars) 1 - Get/install an updated x11 (2.3.1+ has worked well for me) http://xquartz.macosforge.org/trac/wiki2 - Apply my attached patch (I have others for specific games -- but this is the base)3 - Open X11 and goto your 'patched' wine tree4 - (under xterm) Run 'autoconf' to regen yer configure script (my patch mods configure.ac)5 - (under xterm) Run 'configure' however you prefer Verify that the config.log says you have ogl6 - (under xterm) Run 'make depend && make && sudo make install' Now you should be able to run d3d and ogl windows apps under wine - Nick
Date: Sat, 20 Dec 2008 17:29:47 -0800 From: n8gray@gmail.com To: wine-devel@winehq.org Subject: Adding Mac joystick support -- build problem
Hi wine-devels,
I've got a simple goal. I want to play IL-2 Sturmovik on my Mac without rebooting. This flight sim is gold-rated in the app-db, so this should be a walk in the park, but of course the game does require a joystick. After a bit of poking I realized that there's no support for joysticks under Mac OS. I'm willing to write the code for joystick support, and I've even gotten as far as writing a test app under OS X that enumerates all joysticks and polls their state. I've looked at the linux joystick code in wine and think I can write the equivalent code for OS X.
What I *can't* seem to do is build a wine that can run IL-2. I've had no problem installing and playing the demo using the 1.1.9 build at http://www.kronenberg.org/darwine/ and using crossover games, but when I build wine myself the IL-2 demo installer fails to run. I've tried building the 1.1.9 and 1.1.10 tarballs and using macports to install 1.1.10, all with the same result:
--- begin log output --- Could not load Mozilla. HTML rendering will be disabled. err:wgl:has_opengl glx_version is 1.2 and GLX_SGIX_fbconfig extension is unsupported. Expect problems. wine: configuration in '/Users/n8gray/.wine' has been updated. err:ntdll:RtlpWaitForCriticalSection section 0x7bc8a384 "loader.c: loader_section" wait timed out in thread 0024, blocked by 0023, retrying (60 sec) wine: Unhandled page fault on read access to 0xffffffff at address 0x1017:0x00000c1d (thread 0025), starting debugger... couldn't load main module (2) Unhandled exception: page fault on read access to 0xffffffff in 32-bit code (1017:00000c1d). In 32 bit mode. Register dump: CS:1017 SS:1217 DS:1217 ES:11ef FS:11ff GS:0037 EIP:00000c1d ESP:000056ee EBP:00000000 EFLAGS:00010202( - 00 - -RI1) EAX:00000001 EBX:00000080 ECX:000019b0 EDX:00000001 ESI:00000000 EDI:00001217 Stack dump: 0x1217:0x56ee: f160 7b88 0000 7597 120f 0000 0000 0468 0x1217:0x56fe: 1027 0000 0000 0000 0000 0000 0000 0000 0x1217:0x570e: 0000 0000 0000 0000 0000 0000 0000 0000 023f: sel=11ff base=7eed0000 limit=0000ffff 32-bit rw- Backtrace: =>1 0x1017:0x00000c1d (0x1217:0x0000) 0x1017:0x00000c1d: call 0x0000fffe Modules: Module Address Debug info Name (7 modules) PE 60180000-60184000 Deferred advapi32 PE 60310000-60325000 Deferred user32 PE 604b0000-604b4000 Deferred gdi32 PE 61cc0000-61d0d000 Deferred winmm PE 622a0000-622a4000 Deferred version PE 7b810000-7b889000 Deferred kernel32 PE 7bc10000-7bc14000 Deferred ntdll Threads: process tid prio (all id:s are in hex) 0000000c 0000001f 0 0000001e 0 00000018 0 00000017 0 0000000e 0 0000000d 0 00000010 00000011 0 0000001b 00000021 0 00000020 0 0000001d 0 0000001c 0 00000022 (D) C:\windows\system32\winevdm.exe 00000025 0 <== 00000024 0 00000023 0 Backtrace: =>1 0x1017:0x00000c1d (0x1217:0x0000) err:ntdll:RtlpWaitForCriticalSection section 0x7b92c250 "syslevel.c: Win16Mutex" wait timed out in thread 0023, blocked by 0025, retrying (60 sec) --- end log output ---
If I use Mike's build I only get these messages: wine: created the configuration directory '/Users/n8gray/.wine' Could not load Mozilla. HTML rendering will be disabled. wine: configuration in '/Users/n8gray/.wine' has been updated.
Clearly there's some magic build juju that I don't have, perhaps related to opengl. I've read the wiki, but I haven't found anything that I haven't already tried. Can anybody provide a hint as to how to get this working? BTW, I'm using the latest XQuartz 2.3.2_rc3 (xorg-server 1.4.2-apple27).
Thanks, -n8
-- Nathan Gray http://www.n8gray.org/
Resending this due to the terrible hotmail "formatting" Any tips for how to get legible emails out of hotmail without doubling up the newlines would be greatly appreciated Note: I cannot even read the emails I send from hotmail... -------
I have a few tips for running built wine on OS X
I have made some Apple specific mods to get wine (ogl) working Most of these are hacks to workaround some issues in xquartz X11 (and they got radars)
1 - Get/install an updated x11 (2.3.1+ has worked well for me) http://xquartz.macosforge.org/trac/wiki 2 - Apply my attached patch (I have others for specific games -- but this is the base) 3 - Open X11 and goto your 'patched' wine tree 4 - (under xterm) Run 'autoconf' to regen yer configure script (my patch mods configure.ac) 5 - (under xterm) Run 'make depend && make && sudo make install'
Now you should be able to run d3d and ogl windows apps under wine
- Nick
On Sun, Dec 21, 2008 at 9:07 AM, Nick Burns adger44@hotmail.com wrote:
Resending this due to the terrible hotmail "formatting" Any tips for how to get legible emails out of hotmail without doubling up the newlines would be greatly appreciated Note: I cannot even read the emails I send from hotmail...
- Nick
You can use these steps: 1. Add your email and name to git config ($HOME/.gitconfig probably) 2. git-format-patch --keep-subject HEAD^ 3. Now check that patch file looks correct in text editor. (You can also add some extra text to message still) 4. git-send-email --smtp-server <your isp's smtp server> --to wine-patches@winehq.org 0001*
(You can first check that send-email will produce correct headers with --dry-run)
Pauli
Resending this due to the terrible hotmail "formatting" Any tips for how to get legible emails out of hotmail without doubling up the newlines would be greatly appreciated Note: I cannot even read the emails I send from hotmail...
I have a few tips for running built wine on OS X
I have made some Apple specific mods to get wine (ogl) working Most of these are hacks to workaround some issues in xquartz X11 (and they got radars)
1 - Get/install an updated x11 (2.3.1+ has worked well for me) http://xquartz.macosforge.org/trac/wiki 2 - Apply my attached patch (I have others for specific games -- but this is the base) 3 - Open X11 and goto your 'patched' wine tree 4 - (under xterm) Run 'autoconf' to regen yer configure script (my patch mods configure.ac) 5 - (under xterm) Run 'make depend && make && sudo make install'
Now you should be able to run d3d and ogl windows apps under wine
- Nick
I forget a important step -- for actually running apps...
6 - run terminal -- run the following (change PATH to match yer wine install path) open -a X11 export DYLD_FALLBACK_LIBRARY_PATH=$HOME/lib:/usr/local/lib:/lib:/usr/lib:/usr/X11R6/lib/ export PATH=$PATH:/Library/Wine/bin winecfg wine my_app
------- Also note that I generally run in the emulated virtual desktop mode (so keep that in mind if you have problems)
- Nick
On Sat, Dec 20, 2008 at 9:21 PM, Nick Burns adger44@hotmail.com wrote:
I have a few tips for running built wine on OS XI have been working on getting SHOGO to run (I have one more patch to send up)
Hey, thanks for the patch, I'll give it a shot! I also realized that Mike K. provides his build environment and some nice scripts so I've been trying them out as well, but still without success. One thing I've found is that I can replace the dinput.dll from Mike K's build with one of mine without problems, so that may be a way for me to work on the joystick support even if I can't manage to get the whole build working properly.
Cheers, -n8