• 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 23:10:01 -0800

On Dec 22, 2005, at 9:55 PM, Michael Hanna wrote:

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?

First of all, you're using LDFLAGS, not DFLAGS, right? "DFLAGS" doesn't mean anything.


Second, the statement above (if I'm reading it properly) doesn't set CFLAGS or LDFLAGS for the makefile itself, only for the configure stage. You'll probably have to do 'make CFLAGS="..." LDFLAGS="..."' to make sure the CFLAGS and LDFLAGS are used by your makefile.

If that's not the problem, you're going to have to look at your makefiles and figure out how they deal with environment variables and/or CFLAGS and LDFLAGS customization. Every makefile is different and while there are semi-standard practices that'll allow the lines above to work, not every makefile supports them. For example, some makefiles hardcode CFLAGS and/or LDFLAGS and don't allow them to be overridden on the command line.

-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


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