• 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: 10.3 for PPC but 10.4.1 for Intel, how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 10.3 for PPC but 10.4.1 for Intel, how?


  • Subject: Re: 10.3 for PPC but 10.4.1 for Intel, how?
  • From: Scott Fraser <email@hidden>
  • Date: Tue, 28 Feb 2006 10:32:56 -0800

On Feb 26, 2006, at 12:05 PM, Dirk Stegemann wrote:

Am 26.02.2006 um 15:38 schrieb Trygve Inda:

Apple Universal Binary docs page 16 says I can build PPC for 10.3
and Intel
for 10.4.1 and have it all nice in one app. Referring as suggested
to page
18/19 of the same document provides little help.

How do I do this in the properties Info window for my project?


This issue arises frequently and thus should make it to a FAQ...

FYI:
I'm using following settings to build an Univeral binary which runs
on Mac OS X 10.2.x and later:

GCC_VERSION_i386 4.0
GCC_VERSION_ppc 3.3
MACOSX_DEPLOYMENT_TARGET_i386 10.4
MACOSX_DEPLOYMENT_TARGET_ppc 10.2
SDKROOT_i386 /Developer/SDKs/MacOSX10.4u.sdk
SDKROOT_ppc /Developer/SDKs/MacOSX10.2.8.sdk

To compile for system versions prior to Mac OS X 10.3.9, you have to
use GCC < 4 (due to the changed stdc lib, AFAIK).

Best regards,
Dirk Stegemann

I've also found these settings to be very useful. Not sure if some of them are redundant, but the app doesn't build without them.


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

It appears that you can (and should) specify the 10.4 frameworks in your "Link" build phase. The frameworks get passed by name (not path) to the "Ld" command, and are looked up by name in the proper SDK set of libraries.

Scott
-----

_______________________________________________
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


  • Prev by Date: ranlib
  • Next by Date: Re: prebinding on a per-target basis
  • Previous by thread: Re: 10.3 for PPC but 10.4.1 for Intel, how?
  • Next by thread: Single project or two separate projects?
  • Index(es):
    • Date
    • Thread