• 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: Building a library using as universal for 10.3.9 ppc from an Intel build box
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building a library using as universal for 10.3.9 ppc from an Intel build box


  • Subject: Re: Building a library using as universal for 10.3.9 ppc from an Intel build box
  • From: "rohit dhamija" <email@hidden>
  • Date: Thu, 20 Jul 2006 20:32:43 +0530

No Chris ,build a Universal Static library with the setting u just wrote. Now try to link this static libray with application on Mac OS X 10.3.9 and it will throw several errors during link time
 
I made following settings in Xcode 2.2 in order to run my universal static library on Mac OS X 10.4.7 Intel, PPC and Mac OS X 10.3.9 PPC
/////////////////////////////
ARCHS = ppc i386
SDKROOT =
MACOSX_DEPLOYMENT_TARGET =
GCC_VERSION_i386 = 4.0
GCC_VERSION_ppc = 3.3
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/
///////////////////////////////
 
The static library when linked with applications on  Mac OS X 10.4.7 Intel, PPC runs "Fine" but when performed this test on Mac OS X 10.3.9
gives following errors:

 
"ld: ..//libmy32.a(Interface.o) r_type field of relocation
entry 424 in section (__TEXT,__text) invalid
ld: ..//libmy32.a(Interface.o) stray relocation
PPC_RELOC_PAIR entry (425) in section (__TEXT,__text)"

 
These errors are similiar and quite large in number.

There is some issue. Please give a permanent solution for this. I have already put this query earlier but couldnot get any good reply.
 
Also, such issues when faced  by many developers, should have be resolived and should have  proper documented solution , like Technical QAs.
 
Please help
Rohit

 
On 7/20/06, Chris Espinosa <email@hidden> wrote:

On Jul 20, 2006, at 6:36 AM, Brant Sears wrote:

> Right now I have a build script that creates the library as 
> follows. First, I build the library as Universal using GCC 4. The, 
> I build it PowerPC only using GCC 3.3, then I use lipo to replace 
> the powerPC segment of the universal library with the PowerPC/GCC 
> 3.3 segment from the other library. Then, I use the "hybrid" library.

It sounds like you're doing too much work. Why not just set the 
target to use the 10.3.9 SDK on PPC and 10.4u SDK on Intel?

 
Set GCC_VERSION_ppc to 3.3 and GCC_VERSION_i386 to 4.0 and Xcode will do this all for you automatically.

 
http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/UniversalBinaries/chapter_4_section_1.html

 
Chris

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (




--
Rohit Dhamija(M) 9818446545
 _______________________________________________
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: Building a library using as universal for 10.3.9 ppc from an Intel build box
      • From: Chris Espinosa <email@hidden>
    • Re: Building a library using as universal for 10.3.9 ppc from an Intel build box
      • From: "Peter O'Gorman" <email@hidden>
References: 
 >Building a library using as universal for 10.3.9 ppc from an Intel build box (From: "Brant Sears" <email@hidden>)
 >Re: Building a library using as universal for 10.3.9 ppc from an Intel build box (From: Nick Zitzmann <email@hidden>)
 >RE: Building a library using as universal for 10.3.9 ppc from an Intel build box (From: "Brant Sears" <email@hidden>)
 >Re: Building a library using as universal for 10.3.9 ppc from an Intel build box (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: [ANN] Xcode + Leopard at WWDC this year
  • Next by Date: Re: Searching the headers in Xcode (Re: [ANN] Xcode + Leopard at WWDC this year)
  • Previous by thread: Re: Building a library using as universal for 10.3.9 ppc from an Intel build box
  • Next by thread: Re: Building a library using as universal for 10.3.9 ppc from an Intel build box
  • Index(es):
    • Date
    • Thread