• 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: lib does not match cputype
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: lib does not match cputype
      • From: Finlay Dobbie <email@hidden>
    • Re: lib does not match cputype
      • From: Bertrand Landry-Hetu <email@hidden>
    • Re: lib does not match cputype
      • From: Eric Albert <email@hidden>
References: 
 >lib does not match cputype (From: Michael Hanna <email@hidden>)
 >Re: lib does not match cputype (From: Eric Albert <email@hidden>)

  • Prev by Date: Re: Xcode- New Project issue
  • Next by Date: Re: lib does not match cputype
  • Previous by thread: Re: lib does not match cputype
  • Next by thread: Re: lib does not match cputype
  • Index(es):
    • Date
    • Thread