Re: Building a library using as universal for 10.3.9 ppc from an Intel build box
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: Chris Espinosa <email@hidden>
- Date: Thu, 20 Jul 2006 08:22:55 -0700
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden