Re: lib does not match cputype
Re: lib does not match cputype
- Subject: Re: lib does not match cputype
- From: Michael Hanna <email@hidden>
- Date: Thu, 22 Dec 2005 21:55:17 -0800
OK, seems that when I try this sequence when compiling:
env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch
i386 -arch ppc"
env DFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch
i386 -arch ppc"
./configure --disable-dependency-tracking
make; sudo make install; file ./libSoundTouch.a
I get:
libSoundTouch.a: current ar archive random library
rather than the expected Mach-O fat message. What does this mean?
Michael
On 22-Dec-05, at 4:00 PM, Eric Albert wrote:
On Dec 22, 2005, at 3:56 PM, Michael Hanna wrote:
hi, at the commandline:
env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch
i386 -arch ppc" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/
MacOSX10.4u.sdk" ./configure --disable-dependency-tracking
in XCode 2.2:
set Architecture to both ppc i386
I put the libraries in Linked Frameworks group, and added them to
the Link Binary with Libraries node.
at build:
/usr/bin/ld: warning /Users/tao/SimplePlayFile/libSoundTouch.a
archive's cputype (18, architecture ppc) does not match cputype
(7) for specified -arch flag: i386 (can't load from it)
any ideas why I still get the warning?
Change your LDFLAGS to this:
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
We're updating the tech note to add this, but I don't know when
it'll get posted.
Hope this helps,
Eric
_______________________________________________
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