• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: intel-specific header files missing from 10.3.9sdk ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: intel-specific header files missing from 10.3.9sdk ?


  • Subject: Re: intel-specific header files missing from 10.3.9sdk ?
  • From: Rua Haszard Morris <email@hidden>
  • Date: Tue, 16 May 2006 14:51:56 +1200

Thanks all, now I just have to fix the code to compile under 10.4 and we're all set. The xcconfig files work nicely for setting up the settings in all the projects..

On 16/05/2006, at 2:24 PM, Mike Jackson wrote:

What you want to use is an "xcconfig" file in your project. This file will have settings for each target, ppc/10.3.9 and i386/10.4.x. Below is a file that I use for my build settings. How to use the files is covered in the documentation.

ARCHS $(NATIVE_ARCH)
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


-------- Mike Jackson imikejackson <at> gmail <dot> com



On May 15, 2006, at 9:47 PM, Rua Haszard Morris wrote:

Some of my Xcode projects do not build in Release configuration because header files (for example c++config.h) can't be found. All projects target 10.3.9 (and using the 10.3.9 sdk) and use gcc 4.0.

The Debug configuration builds successfully, and the Release configuration builds if ARCHS is set to "ppc". But if an i386 build is attempted, errors are generated starting with not being able to find c++config.h (included in <string>).

After some investigation I found that this file is present in the 10.3.9 sdk in a "powerpc-apple-darwin" subfolder, and there is no matching intel counterpart, explaining why the i386 build wasn't able to find the file.

Looking at 10.4u sdk I notice that there are "c++config.h" files in "i686-apple-darwin8" and "powerpc-apple-darwin8" (and also "powerpc64-apple-darwin8" ). Should there be a i686 folder in the 10.3.9 sdk? Or is what I am trying to do (target 10.3.9 for intel and ppc using gcc 4.0) not supported?

I have tried uninstalling and reinstalling Developer Tools, in case there was a problem with my install. Also I have experimented with targeting 10.4, which does workaround the "c++config.h" issue, but introduces many more issues given that our code currently targets 10.3.9.

Any suggestions?

Is anybody out there on the list targeting 10.3.9 (intel + ppc) using gcc 4.0? Is it possible to build a universal binary that targets 10.3.9; should I be using separate targets for the intel and powerpc builds?

Thanks,
Rua HM._______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


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
References: 
 >intel-specific header files missing from 10.3.9sdk ? (From: Rua Haszard Morris <email@hidden>)
 >Re: intel-specific header files missing from 10.3.9sdk ? (From: Mike Jackson <email@hidden>)

  • Prev by Date: Re: intel-specific header files missing from 10.3.9sdk ?
  • Next by Date: Re: X-Code installation question
  • Previous by thread: Re: intel-specific header files missing from 10.3.9sdk ?
  • Next by thread: Including command-line apps
  • Index(es):
    • Date
    • Thread