|Also, the tools seem to link to the OpenGL framework:|
gcc -g -framework CoreFoundation -framework IOKit -framework OpenGL -m32 -m32 -arch ppc -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -pthread -o qemu-img qemu-img.o qemu-tool.o osdep.o cutils.o qemu-malloc.o block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o block-bochs.o block-vpc.o block-vvfat.o block-qcow2.o block-parallels.o block-nbd.o nbd.o block.o aio.o block-raw-posix.o -lz
On Oct 11, 2008, at 9:43 PM, C.W. Betts wrote:
hmm, it doesn't seem to want to compile using either the 10.4 or 10.3 SDKs. Using 10.3's SDK I get the following:
Are you using a different method of building than I am?
On Oct 11, 2008, at 4:53 AM, Mike Kronenberg wrote:
There where introduced some wrong #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4) with my coregraphics patch.
I submitted a patch to correct this glitches and introduce OpenGL to cocoa.m, but it got somehow forgotten ;)http://kronenberg.org/qemu/091patches/cocoa_m_OpenGL.diff.gz
On 09.10.2008, at 17:26, C.W. Betts wrote:
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 :/