Whenever I try to compile the cocoa.m file using the Mac OS X 10.4
SDK, it always pops up with an error. The error only occurs when
compiling for 10.4: 10.3 and 10.5 are unaffected.
gcc -Wall -O2 -g -fno-strict-aliasing -mdynamic-no-pic -m32 -arch
i386 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/
MacOSX10.4u.sdk -mfpmath=sse -msse3 -
DMAC_OS_X_VERSION_MIN_REQUIRED=1040 -
DMAC_OS_X_VERSION_MAX_ALLOWED=1040 -I. -I/Users/cwbetts/makestuff/
qemu-allmac/src -MMD -MP -MT cocoa.o -D_GNU_SOURCE -
D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/Users/cwbetts/makestuff/
qemu-allmac/src/slirp -c -o cocoa.o /Users/cwbetts/makestuff/qemu-
allmac/src/cocoa.m
/Users/cwbetts/makestuff/qemu-allmac/src/cocoa.m: In function ‘-
[QemuCocoaView toggleFullScreen:]’:
/Users/cwbetts/makestuff/qemu-allmac/src/cocoa.m:441: warning:
‘QemuCocoaView’ may not respond to ‘-exitFullScreenModeWithOptions:’
/Users/cwbetts/makestuff/qemu-allmac/src/cocoa.m:441: warning:
(Messages without a matching method signature
/Users/cwbetts/makestuff/qemu-allmac/src/cocoa.m:441: warning: will
be assumed to return ‘id’ and accept
/Users/cwbetts/makestuff/qemu-allmac/src/cocoa.m:441: warning: ‘...’
as arguments.)
/Users/cwbetts/makestuff/qemu-allmac/src/cocoa.m:459: error:
‘NSFullScreenModeAllScreens’ undeclared (first use in this function)
/Users/cwbetts/makestuff/qemu-allmac/src/cocoa.m:459: error: (Each
undeclared identifier is reported only once
/Users/cwbetts/makestuff/qemu-allmac/src/cocoa.m:459: error: for
each function it appears in.)
/Users/cwbetts/makestuff/qemu-allmac/src/cocoa.m:460: error:
‘NSFullScreenModeSetting’ undeclared (first use in this function)
/Users/cwbetts/makestuff/qemu-allmac/src/cocoa.m:461: warning:
‘QemuCocoaView’ may not respond to ‘-enterFullScreenMode:withOptions:’
make: *** [cocoa.o] Error 1
I worked around it by using the older cocoa.m that uses QuickDraw,
but it seems to use the wrong colors :/