• 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: libPng.dylib: "file is not of required architecture"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libPng.dylib: "file is not of required architecture"


  • Subject: Re: libPng.dylib: "file is not of required architecture"
  • From: Jacob Bandes-Storch <email@hidden>
  • Date: Thu, 7 Feb 2008 19:09:20 -0800

Yeah, it appears to be set to $(NATIVE_ARCH)... The possible settings aren't PPC and Intel, but 32- and 64-bit...!? Why is that? There's a "Valid Architectures" setting that has: ppc64, ppc7400, ppc970, i386, x86_64, ppc. I'm a bit confused. Does any of this help with the problem at all?

On Feb 7, 2008, at 7:04 PM, Kurt Bigler wrote:

Just out of curiosity, is your Architectures build setting for your active build configuration set to be $(NATIVE_ARCH) ?

If so, and if you switch development system architectures midstream I wonder if Xcode gets confused. Then I'd be curious if the same thing happens if you enable both PPC and Intel, and then make the switch between the two development systems.

Not that it shouldn't be keeping the two architectures totally separate anyway--unless maybe you have overridden a default build setting that specifies what is supposed to be an architectures- specific directory path for some intermediate build result.

-Kurt


on 2/7/08 5:53 PM, Jacob Bandes-Storch <email@hidden> wrote:

I've been working on a project on both my old PPC G4 and my Intel Core Duo macs. After working on the PPC, when I bring it over to the Intel computer, sometimes I get this build error:

ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib, file is not of required architecture
collect2: ld returned 1 exit status



What causes this? It's using the 10.4 SDK... I'm trying to make the program compatible at least back to 10.4. Sometimes this works, sometimes it doesn't... What causes this problem that must have changed? (I also get something about build.hmap being/not being a directory — that's fixed by cleaning the build.)


_______________________________________________
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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: libPng.dylib: "file is not of required architecture"
      • From: Marc Lohse <email@hidden>
    • Re: libPng.dylib: "file is not of required architecture"
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Bug in CF/NSString's no-copy constructors
  • Next by Date: Re: Animation in Cocoa too slow? [was: Animation with CALayer?]
  • Previous by thread: Re: no method found returning 'id'
  • Next by thread: Re: libPng.dylib: "file is not of required architecture"
  • Index(es):
    • Date
    • Thread