Cannot Build Darwine Hello World.exe using OS X 10.4.7
Status: Pre-Alpha
Brought to you by:
jimwhite
I followed the instructions for the SDK version, and
when I tried to build the new project in Xcode, these
faults were generated:
main.h:19:21: error: windows.h: No such file or directory
main.c:21: error: parse error before 'WinMain'
main.c:21: error: parse error before 'hInstance'
main.c:22: warning: return type defaults to 'int'
main.c:24: warning: implicit declaration of function
'MessageBox'
main.c:24: error: 'NULL' undeclared (first use in this
function)
main.c:24: error: 'MB_OK' undeclared (first use in this
function)
main.c:24: error: 'MB_ICONEXCLAMATION' undeclared
(first use in this function)
ivoireanpu @ yahoo.com
Logged In: YES
user_id=1608737
using OSX 10.4.7, and xCode 2.4, edit the makefile (in order of appearance):
if you are using an intel machine:
remove -D__powerpc__ (twice)
for everyone:
change: /usr/include/wine to:/Developer/Headers/Wine/include/wine
change: /usr/include/wine/windows to: /Developer/Headers/Wine/include/
wine/windows
change: winegcc to: /Developer/Tools/winegcc
when you begin the project, tell xCode to keep the OBJ files in the source
directory, or winegcc cant find them.
at this point, winegcc cannot find winebuild. (sigh) how do i tell winegcc it is
in the same directory it is in? chaning winebuild's definition in the makefile
doesnt seem to help.
when i run winebuild by hand, winegcc seems to have handed it a mangled
command line:
winebuild -v --as-cmd as --ld-cmd ld -D_REENTRANT -fPIC --exe -o
darwinehelloworld.exe-iHOqoJ.spec.o -F darwinehelloworld.exe --subsystem
windows -L/usr/lib/wine -L/tmp/wine_root/lib/wine -L/tmp/wine_root/lib -
L/usr/lib -L/usr/local/lib -L/lib main.o
notice the "darwinehelloworld.exe-iHOqoJ.spec.o" adding a space and
running it again suceeds, but generates this error:
wine: could not load L"Z:\\Volumes\\700G Bay 2\\Winemine\
\darwinehelloworld.exe": Bad EXE format for
BTW, i am running on a intel based Mac Pro. any help would be apprecaited.
also, is anyone working on a an Aqua version of the libraries, so X11 does not
have to load?