Re: [Darwine] Xcode can't find windows.h
Status: Pre-Alpha
Brought to you by:
jimwhite
From: Dee A. <de...@gm...> - 2007-03-24 18:26:05
|
I was able to build and run the Darwine Xcode template! My PATH setting above was working in the Makefile. It actually was a different error later. I added the following to Makefile: (Remember I'm on Intel, so you may need to change i386 to your architecture ppc, ppc4, x86_64) PATH = $PATH:/Developer/Tools:/usr/libexec/gcc/darwin/i386:/usr/bin 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 Don't forget the earlier changes in this thread (Appending to INCLUDE_PATH -I/Developer/Headers/Wine/include/wine/windows and CEXTRA and CXXEXTR for __i386__ or your architecture) 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! |