• 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: Eric Albert <email@hidden>
  • Date: Thu, 22 Dec 2005 16:00:34 -0800

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: Michael Hanna <email@hidden>
References: 
 >lib does not match cputype (From: Michael Hanna <email@hidden>)

  • Prev by Date: lib does not match cputype
  • Next by Date: Re: Where is __MyCompanyName__ defined?
  • Previous by thread: lib does not match cputype
  • Next by thread: Re: lib does not match cputype
  • Index(es):
    • Date
    • Thread