#54 HelloWorld RequestID 1508296 Workaround

open
nobody
None
5
2013-01-23
2007-03-24
Anonymous
No

RequestID 1508296 Build failed (7 errors, 2 warnings) * 2006-06-18 14:34

I was able to build and run the Darwine SDK Xcode template (only 9 months later than the above bug report).
During this week of 2007-03-18, Xcode 2.4.1 does not honor Paths in Project | Edit Project Settings on Mac OSX 10.4.9 Build 8P2137 on Mac Intel Core Duo.

I edited the template's Makefile's INCLUDE_PATH to include /Developer/Headers/Wine/include/wine/windows
Then I changed __powerpc__ in CEXTRA and CXXEXTRA to __i386__
I added PATH = $PATH:/Developer/Tools:/usr/libexec/gcc/darwin/i386:/usr/bin
(Note your architecture above)

There were also warnings about not finding the path /usr/lib/wine
I don't know if Darwine (or Darwine SDK) installed this or is missing
this library path or if I overwrote it with WineHQ versions, but I
(re)installed winehq.com wine-0.9.33 next.

WineHQ had minor install problems for me. If ./tools/wineinstall
doesn't work for you, try from an X11 window (not the standard Mac OS
X Terminal window -- so you need to have X11 installed)
./configure
make depend && make
make install (this last make requires root or sudo)

Then I was able to replace in the Makefile
LIBRARY_PATH = -L/usr/lib/wine
with
LIBRARY_PATH = -L/my_path_to/wine-0.9.33/dlls

I think that's it. Click Build from Xcode.
Succeeded baby! No Warnings and No Errors
Then I ran it in an X11 window from /my_path_to/wine-0.9.33/
with
./wine ~/my_path_to/darwinehelloworld.exe.so

Good Luck!

Discussion