• 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 22:13:45 +0530

Hey Chris,
 
I am sorry, but I am not very much convinced by your answer.
 
I have kept SDKROOT  empty and given the settings for SDKROOT_ppc and SDKROOT_i386 in lot of modules and these settings are working PERFECT.
 
For example in case of my KEXT,I have specified the settings similiar to what i had set in static library (also mentioned in my previous post). The KEXT works as per the settings.
 
Can you or any APPLE engineer show such universal static library that succesfully links with Mac os x 10.4 ppc intel and Mac OS X 10.3.9 ??  You may use any Xcode 2.2 or 2.3 version.
 
Doing lipo to combine the libraries is fine, but dosenot makes much sense in practical scenerio. Consider a scenerio, that for every minor change in static library code, we need to build it seperately for 2 different operating systems versions and then again lipo them together. Also which means a lot of efforts for a single library.
 
I would again suggest to look into this matter.
Rohit

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

On Jul 20, 2006, at 8:02 AM, rohit dhamija wrote:

> 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.

You're just running into a bug in Xcode 2.2 where your SDKROOT_ppc
and SDKROOT_i386 settings are being ignored because SDKROOT is
empty.  Set SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk and the above
should work.  This bug is fixed in Xcode 2.3.

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

This email sent to email@hidden



--
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

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>)
 >Re: Building a library using as universal for 10.3.9 ppc from an Intel build box (From: "rohit dhamija" <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: Setting up searches in Xcode (Re: [ANN] Xcode + Leopard at WWDCthis year)
  • Next by Date: Re: Building a library using as universal for 10.3.9 ppc from an Intel build box
  • 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