• 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: Question about building Universal Binaries in Leopard with transient <Xcode directory>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about building Universal Binaries in Leopard with transient <Xcode directory>


  • Subject: Re: Question about building Universal Binaries in Leopard with transient <Xcode directory>
  • From: Chris Hanson <email@hidden>
  • Date: Tue, 30 Oct 2007 23:39:53 -0700

On Oct 30, 2007, at 11:20 PM, Terry Simons wrote:

I saw in the "About Xcode Tools" documentation for Leopard that the XCode 3.0 tools can be installed in a location other than "/Developer".

I'm assuming this means that the SDKs directory goes with it?

Yes.

If so, how does one go about detecting the location where XCode is installed from an auto-tools based program?

My specific concern is that the following technote says to pass -isysroot /Developer/SDKs/MacOSX10.4u.sdk to build Universal binaries:

http://developer.apple.com/technotes/tn2005/tn2137.html

You can use the xcode-select tool to get the location of the Xcode tools that are currently selected for command-line development.  In the Xcode 3.0 Release Notes <http://developer.apple.com/releasenotes/DeveloperTools/RN-Xcode/>:

The Xcode Developer Tools installer also installs the standard system development tools and interfaces into /usr, so conventional makefile- and config-based builds will operate correctly. There is no way to switch among versions of most these tools; the last installed version replaces all other versions. A few of these tools, including /usr/bin/xcodebuild, can switch among versions; see the xcode-select manpage for more information. Installation of these tools can be disabled by turning off the UNIX Development Support choice in the installer.

If the UNIX Development Support is not installed, all projects must build against an SDK, and conventional makefile-based builds should execute the standard development tools from the developer directory’s usr/bin directory instead of the root system’s /usr/bin. This can be done by adding the full path to that directory to the PATH environment variable and making sure that your build scripts and makefiles do not have absolute references to tools such as /usr/bin/gcc, instead always using the shell’s path mechanism to launch the tools. Alternatively, tools can be invoked using a path returned by xcode-select -print-path; see the xcode-selectmanpage for more information.

Just do a "man xcode-select" from Terminal for more information.  Hope this helps!

  -- Chris


 _______________________________________________
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

  • Follow-Ups:
    • Re: Question about building Universal Binaries in Leopard with transient <Xcode directory>
      • From: Terry Simons <email@hidden>
References: 
 >Question about building Universal Binaries in Leopard with transient <Xcode directory> (From: Terry Simons <email@hidden>)

  • Prev by Date: ld: library not found for -lcrt1.10.5.o when trying to build against MacOSX10.4u.sdk in Leopard
  • Next by Date: Re: How do I create and use a custom SDK for 3rd party frameworks?
  • Previous by thread: Question about building Universal Binaries in Leopard with transient <Xcode directory>
  • Next by thread: Re: Question about building Universal Binaries in Leopard with transient <Xcode directory>
  • Index(es):
    • Date
    • Thread