Re: Intel architecture setting ignored?
Re: Intel architecture setting ignored?
- Subject: Re: Intel architecture setting ignored?
- From: Frank Reiff <email@hidden>
- Date: Sun, 20 Nov 2005 17:47:50 +0100
Ok,
Five minutes after requesting your insights and preparing to pack up
for the day in despair, I noticed a menu item in the "project" menu
that isn't usually there.. "Upgrade to Native Target..."..
It would appear that my venerable context menu was still a "JAM-
based" target. XCode 2.1, I presume, supports multiple SDKs for these
target, XCode 2.2 seems to have ditched this:
"Native targets have certain advantages over JAM targets. Because the
dependency checking is done in the IDE itself, it is faster, which
means that your builds start faster. In addition, many Xcode
features, including Zero Link, Fix and Continue, Distributed Builds,
and SDK Support, are only implemented for native targets."
Upgrading the target did the trick.
Sorry to have wasted your time :-(
Regards,
Frank
On 20/11/2005, at 5:23 PM, Frank Reiff wrote:
Dear all,
I have run into a problem with i386 cross-development on XCode 2.2.
I have successfully ported a context menu plug-in using XCode 2.1
on the Intel Developer Kit machine simply by activating the i386
and ppc architectures and setting the SDKROOT to the universal 10.4
sdk. Everything seemed to work fine.
Now on my main development machine (PPC), I wanted to start
building proper release versions targeting 10.3 on PPC and 10.4
universal on i386.
This is what I did:
1) upgraded to XCode 2.2
2) took the unmodified PPC-only project (not the copy with which I
had experimented on the intel machine)
3) for all configurations set the ppc + i386 architectures
4) set the SDKROOT in the project info to 10.4
5) set the SDKROOT_i386 for the i386 to 10.4 universal sdk
6) set the SDkROOT_ppc for PPC to 10.3 sdk
7) set the build configuration to "Deployment"
This compiles fine with the exception of a few File Manager
deprecated calls warnings; the build succeeds.
Testing the resulting context menu on the Intel Mac, however, does
not work !? The context menu is not loaded. Using the Get Info
dialog shows that the context menu is "ppc" only... hhmmm.. going
back to the actual build log, there are several mentions of "ppc"
and -arch "ppc", but nothing about i386. In other words, nothing is
compiled for the i386 architecture!?
I have tried re-installing XCode 2.2; I have changed the
architecture settings to only i386; both i386 and ppc; I have
cleaned the output directory manually and via XCode; I have checked
that the sdks are properly installed; I have removed the per-
architecture settings; I have restarted with the old project; in
fact I have tried everything I can think of.
Can anybody give me a pointer to what I am doing wrong here? Or is
this an XCode 2.2 bug/ feature?
I have included below the build output in the hope that this will
help.
Thanks in advance for your knowledgeable comments.
Frank
---
Building target “A Better Finder Context Menu” of project “A Better
Finder Context Menu”
Checking Dependencies
JamToolExecution "A Better Finder Context Menu"
cd "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)"
setenv ASCII_OUTPUT_ANNOTATION YES
setenv CodeWarrior "/Applications/Metrowerks CodeWarrior 9.0/
Metrowerks CodeWarrior"
setenv ENABLE_APPLE_JAM_EXTENSIONS YES
setenv ENABLE_APPLE_JAM_OUTPUT_ANNOTATION YES
setenv GROUP staff
setenv MACOSX_DEPLOYMENT_TARGET 10.4
setenv NATIVE_ARCH ppc
setenv USER frankreiff
/Developer/Private/jam -d1 -j2 JAMBASE=/Developer/Makefiles/
pbx_jamfiles/ProjectBuilderJambase JAMFILE=/Users/frankreiff/
Desktop/Projects/A\ Better\ Finder\ Context\ Menu\ (Universal)/
build/A\ Better\ Finder\ Context\ Menu.build/Deployment/A\ Better\
Finder\ Context\ Menu.build/A\ Better\ Finder\ Context\ Menu.jam
build ACTION=build _DEFAULT_GCC_VERSION=4.0
GCC_VERSION_IDENTIFIER=4_0 CONFIGURATION=Deployment
BUILD_STYLE=Deployment CPP_HEADERMAP_FILE=/Users/frankreiff/Desktop/
Projects/A\ Better\ Finder\ Context\ Menu\ (Universal)/build/A\
Better\ Finder\ Context\ Menu.build/Deployment/A\ Better\ Finder\
Context\ Menu.build/A\ Better\ Finder\ Context\ Menu.hmap
CLEAN_PRECOMPS=YES SRCROOT=/Users/frankreiff/Desktop/Projects/A\
Better\ Finder\ Context\ Menu\ (Universal) OBJROOT=/Users/
frankreiff/Desktop/Projects/A\ Better\ Finder\ Context\ Menu\
(Universal)/build SYMROOT=/Users/frankreiff/Desktop/Projects/A\
Better\ Finder\ Context\ Menu\ (Universal)/build DSTROOT=/tmp/A\
Better\ Finder\ Context\ Menu.dst
Mkdir "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)/build/Deployment/A Better Finder Context Menu.plugin"
/bin/mkdir -p "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/Deployment/A Better Finder
Context Menu.plugin"
Mkdir "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)/build/Deployment/A Better Finder Context
Menu.plugin/Contents/Resources"
/bin/mkdir -p "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/Deployment/A Better Finder
Context Menu.plugin/Contents/Resources"
Mkdir "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)/build/Deployment/A Better Finder Context
Menu.plugin/Contents/Resources/English.lproj"
/bin/mkdir -p "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/Deployment/A Better Finder
Context Menu.plugin/Contents/Resources/English.lproj"
Mkdir "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)/build/Deployment/A Better Finder Context
Menu.plugin/Contents"
/bin/mkdir -p "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/Deployment/A Better Finder
Context Menu.plugin/Contents"
PBXCp "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)/build/Deployment/A Better Finder Context
Menu.plugin/Contents/Info.plist" "/Users/frankreiff/Desktop/
Projects/A Better Finder Context Menu (Universal)/build/A Better
Finder Context Menu.build/Deployment/A Better Finder Context
Menu.build/Info.plist"
/System/Library/PrivateFrameworks/DevToolsCore.framework/
Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -
strip-debug-symbols -resolve-src-symlinks "/Users/frankreiff/
Desktop/Projects/A Better Finder Context Menu (Universal)/build/A
Better Finder Context Menu.build/Deployment/A Better Finder Context
Menu.build/Info.plist" "/Users/frankreiff/Desktop/Projects/A
Better Finder Context Menu (Universal)/build/Deployment/A Better
Finder Context Menu.plugin/Contents"
PBXCp "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)/build/Deployment/A Better Finder Context
Menu.plugin/Contents/Resources/English.lproj/InfoPlist.strings"
English.lproj/InfoPlist.strings
/System/Library/PrivateFrameworks/DevToolsCore.framework/
Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -
strip-debug-symbols -resolve-src-symlinks English.lproj/
InfoPlist.strings "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/Deployment/A Better Finder
Context Menu.plugin/Contents/Resources/English.lproj"
PBXCp "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)/build/Deployment/A Better Finder Context
Menu.plugin/Contents/pbdevelopment.plist" "/Users/frankreiff/
Desktop/Projects/A Better Finder Context Menu (Universal)/build/A
Better Finder Context Menu.build/Deployment/A Better Finder Context
Menu.build/pbdevelopment.plist"
/System/Library/PrivateFrameworks/DevToolsCore.framework/
Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -
strip-debug-symbols -resolve-src-symlinks "/Users/frankreiff/
Desktop/Projects/A Better Finder Context Menu (Universal)/build/A
Better Finder Context Menu.build/Deployment/A Better Finder Context
Menu.build/pbdevelopment.plist" "/Users/frankreiff/Desktop/
Projects/A Better Finder Context Menu (Universal)/build/Deployment/
A Better Finder Context Menu.plugin/Contents"
Mkdir "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)/build/A Better Finder Context Menu.build/
Deployment/A Better Finder Context Menu.build/Objects-normal/ppc"
/bin/mkdir -p "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/A Better Finder Context
Menu.build/Deployment/A Better Finder Context Menu.build/Objects-
normal/ppc"
BuildPhase "<CopyResources>A Better Finder Context Menu.plugin" "<A
Better Finder Context Menu>A Better Finder Context Menu.plugin"
echo Completed phase "<CopyResources>" for "<CopyResources>A
Better Finder Context Menu.plugin"
Completed phase <CopyResources> for <CopyResources>A Better Finder
Context Menu.plugin
CompileC "/Users/frankreiff/Desktop/Projects/A Better Finder
Context Menu (Universal)/build/A Better Finder Context Menu.build/
Deployment/A Better Finder Context Menu.build/Objects-normal/ppc/
SampleCMPlugin.o" SampleCMPlugin.c
/usr/bin/gcc-4.0 -c "-I/Users/frankreiff/Desktop/Projects/A
Better Finder Context Menu (Universal)/build/A Better Finder
Context Menu.build/Deployment/A Better Finder Context Menu.build/A
Better Finder Context Menu.hmap" -F"/Users/frankreiff/Desktop/
Projects/A Better Finder Context Menu (Universal)/build/
Deployment" -I"/Users/frankreiff/Desktop/Projects/A Better Finder
Context Menu (Universal)/build/Deployment/include" -arch ppc -fno-
common -fpascal-strings -Os -Wmost -Wno-four-char-constants -Wno-
unknown-pragmas -pipe "-fmessage-length=0" -g
SampleCMPlugin.c -o "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/A Better Finder Context
Menu.build/Deployment/A Better Finder Context Menu.build/Objects-
normal/ppc/SampleCMPlugin.o"
SampleCMPlugin.c: In function 'WriteFilesToDisk':
SampleCMPlugin.c:545: warning: 'FSMakeFSSpec' is deprecated
(declared at /System/Library/Frameworks/CoreServices.framework/
Frameworks/CarbonCore.framework/Headers/Files.h:8967)
SampleCMPlugin.c:548: warning: 'FSpDelete' is deprecated (declared
at /System/Library/Frameworks/CoreServices.framework/Frameworks/
CarbonCore.framework/Headers/Files.h:9060)
SampleCMPlugin.c:550: warning: 'FSpCreate' is deprecated (declared
at /System/Library/Frameworks/CoreServices.framework/Frameworks/
CarbonCore.framework/Headers/Files.h:9025)
SampleCMPlugin.c:557: warning: 'FSpOpenDF' is deprecated (declared
at /System/Library/Frameworks/CoreServices.framework/Frameworks/
CarbonCore.framework/Headers/Files.h:8986)
SampleCMPlugin.c:586: warning: 'CopyPascalStringToC' is deprecated
(declared at /System/Library/Frameworks/CoreServices.framework/
Frameworks/CarbonCore.framework/Headers/TextUtils.h:598)
SampleCMPlugin.c:594: warning: 'FSWrite' is deprecated (declared
at /System/Library/Frameworks/CoreServices.framework/Frameworks/
CarbonCore.framework/Headers/Files.h:7257)
SampleCMPlugin.c:601: warning: 'FSClose' is deprecated (declared
at /System/Library/Frameworks/CoreServices.framework/Frameworks/
CarbonCore.framework/Headers/Files.h:7219)
Mkdir "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)/build/Deployment/A Better Finder Context
Menu.plugin/Contents/MacOS"
/bin/mkdir -p "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/Deployment/A Better Finder
Context Menu.plugin/Contents/MacOS"
Mkdir "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)/build/A Better Finder Context Menu.build/
Deployment/A Better Finder Context Menu.build/Objects-normal"
/bin/mkdir -p "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/A Better Finder Context
Menu.build/Deployment/A Better Finder Context Menu.build/Objects-
normal"
Mkdir "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)/build/A Better Finder Context Menu.build/
Deployment/A Better Finder Context Menu.build/JavaClasses"
/bin/mkdir -p "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/A Better Finder Context
Menu.build/Deployment/A Better Finder Context Menu.build/JavaClasses"
Mkdir "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)/build/A Better Finder Context Menu.build/
Deployment/A Better Finder Context Menu.build/DerivedSources"
/bin/mkdir -p "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/A Better Finder Context
Menu.build/Deployment/A Better Finder Context Menu.build/
DerivedSources"
BuildPhase "<DeriveAndCompileSources>A Better Finder Context
Menu.plugin" "<A Better Finder Context Menu>A Better Finder Context
Menu.plugin"
echo Completed phase "<DeriveAndCompileSources>" for
"<DeriveAndCompileSources>A Better Finder Context Menu.plugin"
Completed phase <DeriveAndCompileSources> for
<DeriveAndCompileSources>A Better Finder Context Menu.plugin
ClearFileList "/Users/frankreiff/Desktop/Projects/A Better Finder
Context Menu (Universal)/build/A Better Finder Context Menu.build/
Deployment/A Better Finder Context Menu.build/Objects-normal/
LinkFileList"
/bin/rm -rf "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/A Better Finder Context
Menu.build/Deployment/A Better Finder Context Menu.build/Objects-
normal/LinkFileList"
AppendToFileList "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/A Better Finder Context
Menu.build/Deployment/A Better Finder Context Menu.build/Objects-
normal/LinkFileList" "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/A Better Finder Context
Menu.build/Deployment/A Better Finder Context Menu.build/Objects-
normal/ppc/SampleCMPlugin.o"
for file_reference in "/Users/frankreiff/Desktop/Projects/A
Better Finder Context Menu (Universal)/build/A Better Finder
Context Menu.build/Deployment/A Better Finder Context Menu.build/
Objects-normal/ppc/SampleCMPlugin.o"
do
echo "$file_reference" >> "/Users/frankreiff/Desktop/
Projects/A Better Finder Context Menu (Universal)/build/A Better
Finder Context Menu.build/Deployment/A Better Finder Context
Menu.build/Objects-normal/LinkFileList"
done
DynamicLibrary "/Users/frankreiff/Desktop/Projects/A Better Finder
Context Menu (Universal)/build/Deployment/A Better Finder Context
Menu.plugin/Contents/MacOS/A Better Finder Context Menu" "/Users/
frankreiff/Desktop/Projects/A Better Finder Context Menu
(Universal)/build/A Better Finder Context Menu.build/Deployment/A
Better Finder Context Menu.build/Objects-normal/ppc/
SampleCMPlugin.o" /System/Library/Frameworks/
CoreFoundation.framework /System/Library/Frameworks/
ApplicationServices.framework /System/Library/Frameworks/
Carbon.framework
DynamicLibrary.LinkUsingFileList "/Users/frankreiff/Desktop/
Projects/A Better Finder Context Menu (Universal)/build/Deployment/
A Better Finder Context Menu.plugin/Contents/MacOS/A Better Finder
Context Menu" "/Users/frankreiff/Desktop/Projects/A Better Finder
Context Menu (Universal)/build/A Better Finder Context Menu.build/
Deployment/A Better Finder Context Menu.build/Objects-normal/
LinkFileList"
/usr/bin/gcc-4.0 -o "/Users/frankreiff/Desktop/Projects/A
Better Finder Context Menu (Universal)/build/Deployment/A Better
Finder Context Menu.plugin/Contents/MacOS/A Better Finder Context
Menu" "-L/Users/frankreiff/Desktop/Projects/A Better Finder
Context Menu (Universal)/build/Deployment" "-F/Users/frankreiff/
Desktop/Projects/A Better Finder Context Menu (Universal)/build/
Deployment" -filelist "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/A Better Finder Context
Menu.build/Deployment/A Better Finder Context Menu.build/Objects-
normal/LinkFileList" "-framework" "CoreFoundation" "-framework"
"ApplicationServices" "-framework" "Carbon" "-arch" "ppc" "-bundle"
BuildPhase "<LinkWithFrameworksAndLibraries>A Better Finder Context
Menu.plugin" "<A Better Finder Context Menu>A Better Finder Context
Menu.plugin"
echo Completed phase "<LinkWithFrameworksAndLibraries>" for
"<LinkWithFrameworksAndLibraries>A Better Finder Context Menu.plugin"
Completed phase <LinkWithFrameworksAndLibraries> for
<LinkWithFrameworksAndLibraries>A Better Finder Context Menu.plugin
BuildPhase "<RezResourceManagerFiles>A Better Finder Context
Menu.plugin" "<A Better Finder Context Menu>A Better Finder Context
Menu.plugin"
echo Completed phase "<RezResourceManagerFiles>" for
"<RezResourceManagerFiles>A Better Finder Context Menu.plugin"
Completed phase <RezResourceManagerFiles> for
<RezResourceManagerFiles>A Better Finder Context Menu.plugin
BuildPhase "<NoOp>A Better Finder Context Menu.plugin" "<A Better
Finder Context Menu>A Better Finder Context Menu.plugin"
echo Completed phase "<NoOp>" for "<NoOp>A Better Finder
Context Menu.plugin"
Completed phase <NoOp> for <NoOp>A Better Finder Context Menu.plugin
Touch "/Users/frankreiff/Desktop/Projects/A Better Finder Context
Menu (Universal)/build/Deployment/A Better Finder Context Menu.plugin"
/usr/bin/touch "/Users/frankreiff/Desktop/Projects/A Better
Finder Context Menu (Universal)/build/Deployment/A Better Finder
Context Menu.plugin"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40publicspace.net
This email sent to email@hidden
_______________________________________________
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