Message: 8
Date: Thu, 25 May 2006 12:58:21 -0700
From: Scott Tooker <email@hidden>
Subject: Re: XCConfig file stoped working
To: XCode Users <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Why are you setting per-architecture HEADER_SEARCH_PATHS? We will
already append the appropriate value for SDKROOT when needed to
HEADER_SEARCH_PATHS or FRAMEWORK_SEARCH_PATHS.
You should remove your HEADER_SEARCH_PATHS and FRAMEWORK_SEARCH_PATHS
settings from this file (they are not needed, as we will look at the
version of gcc used when constructing the base set of system search
paths). Also remove the per-architecture PREBINDING build setting
(unless you have a very good reason, you should set PREBINDING to NO,
independent of architecture).
Really all you need in this file is:
> ARCHS = ppc i386
> GCC_VERSION_i386 = 4.0
> GCC_VERSION_ppc = 4.0
> MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
> MACOSX_DEPLOYMENT_TARGET_ppc = 10.3
> SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk
> SDKROOT_ppc = /Developer/SDKs/MacOSX10.3.9.sdk
And if the value of GCC_VERSION really isn't changing per
architecture
(do you want to use gcc 4.0 on PPC?), then you don't even need to set
GCC_VERSION per architecture in the xcconfig file.
Scott
On May 25, 2006, at 6:32 AM, Mike Jackson wrote:
> Upgraded to Xcode 2.3 and now I am getting a warning about my
> xcconfig file not working. Here is the error:
>
> Checking DependenciesThe configuration settings file
> CrossCompile.xcconfig will not be used due to an error: String '$
> (SDKROOT_($arch))/usr/include/gcc/darwin/4.0/c++' isn't a valid
> variable assignment.
>
> And here is my File:
>
> ARCHS = ppc i386
> GCC_VERSION_i386 = 4.0
> GCC_VERSION_ppc = 4.0
> MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
> MACOSX_DEPLOYMENT_TARGET_ppc = 10.3
> SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk
> SDKROOT_ppc = /Developer/SDKs/MacOSX10.3.9.sdk
> HEADER_SEARCH_PATHS_i386 = $(SDKROOT_($arch))/Developer/Headers/
> FlatCarbon
> $(SDKROOT_($arch))/usr/include/gcc/darwin/4.0/c++
> $(SDKROOT_($arch))/usr/include/gcc/darwin/4.0/c++/($arch)-darwin
> $(SDKROOT_($arch))/usr/include/gcc/darwin/4.0/c++/($arch)-darwin/
> bits
> $(SDKROOT_($arch))/usr/include/architecture/($arch)
>
> HEADER_SEARCH_PATHS_ppc = $(SDKROOT_($arch))/Developer/Headers/
> FlatCarbon
> $(SDKROOT_($arch))/usr/include/gcc/darwin/3.3/c++
> $(SDKROOT_($arch))/usr/include/gcc/darwin/3.3/c++/($arch)-darwin
> $(SDKROOT_($arch))/usr/include/gcc/darwin/3.3/c++/($arch)-darwin/
> bits
> $(SDKROOT_($arch))/usr/include/architecture/($arch)
>
> FRAMEWORK_SEARCH_PATHS = $(SDKROOT_($arch))/System/Library/
Frameworks
> PREBINDING = $(PREBINDING_$(CURRENT_ARCH))
> PREBINDING_i386 = NO
> PREBINDING_ppc = YES
>
> Read about xcconfig files in the help but that page did not really
> offer any help... Maybe including an example on that page would be
> useful.
>
>
> --------
> Mike Jackson
> imikejackson <at> gmail <dot> com