Compiling a screen saver for Snow Leopard (10.6) and Leopard (10.5)
Compiling a screen saver for Snow Leopard (10.6) and Leopard (10.5)
- Subject: Compiling a screen saver for Snow Leopard (10.6) and Leopard (10.5)
- From: Gabriel Zachmann <email@hidden>
- Date: Thu, 8 Oct 2009 13:08:59 +0200
I am trying to compile a screensaver under Xcode 3.2 on Snow Leopard,
such that it will also run on 10.5 (Intel).
However, I keep getting this error message from the linker:
Ld /private/tmp/ArtSaverSnow.build/Development/Executable.build/
Objects-normal/x86_64/ArtSaver normal x86_64
cd /Users/zach/Code/ArtSaver
setenv MACOSX_DEPLOYMENT_TARGET 10.5
/Developer/usr/bin/gcc-4.2 -arch x86_64 -bundle -isysroot /Developer/
SDKs/MacOSX10.5.sdk -L/Users/zach/Code/ArtSaver/build/Development -F/
Users/zach/Code/ArtSaver/build/Development -filelist /private/tmp/
ArtSaverSnow.build/Development/Executable.build/Objects-normal/x86_64/
ArtSaver.LinkFileList -mmacosx-version-min=10.5 -framework Cocoa -
framework ScreenSaver -framework Foundation -framework ScriptingBridge
-framework QuartzCore -framework ApplicationServices -framework OpenGL
-o /private/tmp/ArtSaverSnow.build/Development/Executable.build/
Objects-normal/x86_64/ArtSaver
ld: warning: in /Developer/SDKs/MacOSX10.5.sdk/System/Library/
Frameworks//ScreenSaver.framework/ScreenSaver, missing required
architecture x86_64 in file
Undefined symbols:
"_OBJC_CLASS_$_ScreenSaverView", referenced from:
[...]
I have set a number of conditional build settings like so:
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
"ARCHS[sdk=macosx10.6]" = "$(ARCHS_STANDARD_64_BIT)";
GCC_ENABLE_OBJC_GC = unsupported;
"GCC_ENABLE_OBJC_GC[sdk=macosx10.6][arch=x86_64]" =
supported;
MACOSX_DEPLOYMENT_TARGET = 10.5;
"MACOSX_DEPLOYMENT_TARGET[sdk=macosx10.6][arch=*]" =
10.6;
SDKROOT = macosx10.5;
"SDKROOT[arch=x86_64]" = macosx10.6;
"FRAMEWORK_SEARCH_PATHS[sdk=macosx10.6][arch=x86_64]"
= /Developer/SDKs/MacOSX10.6.sdk;
What's a bit disturbing to me is that -isysroot /Developer/SDKs/
MacOSX10.5.sdk ... where does that come from?
I have also tried a number of variations -- sometimes it did compile,
but then it didn't execute under 10.5 ...
Am I missing something?
Regards,
Gabriel.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden