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

Re: file is not of required architecture


  • Subject: Re: file is not of required architecture
  • From: Alastair Houghton <email@hidden>
  • Date: Mon, 14 Jan 2008 20:44:24 +0000

On 14 Jan 2008, at 19:30, Michael Hanna wrote:

When building in Release and linking to the 10.4u SDK, I get this error

ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libTIFF.dylib,
file is not of required architecture

I'm not even linking against these libraries... and this is an empty
Xcode project.

seems these libraries are PPC only. If I remove the tiff libs from the
directory, I get the same error, but with libPNG, which also appears
to be PPC only.

I'm not sure why the linker is giving me this trouble as I never had
this issue before with single-architecture libraries. Any ideas how to
get past this? This problem doesn't appear in Debug mode.

This issue has come up before (so you should search the list archives).

Essentially the problem is that /usr/local/lib is symlinked from the OS X 10.4 SDK, which means that the linker can pick up versions of e.g. libTIFF that you've built separately. That being the case, if the libTIFF it finds happens to be a single-architecture version and you're trying to make a Universal binary, you'll get an error.

IMO the SDK shouldn't symlink to /usr/local/lib, because there's no way to guarantee that anything in that folder will be installed on an end-user's machine, or indeed that it's been built for the version of the SDK that you're using. Anyway, you can either delete the symlink (which is technically unsupported as you're changing the SDK), or you can delete the extra libraries.

Kind regards,

Alastair.

--
http://alastairs-place.net




_______________________________________________ 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: 
 >file is not of required architecture (From: "Michael Hanna" <email@hidden>)

  • Prev by Date: file is not of required architecture
  • Next by Date: Java Docs in Xcode 2.5
  • Previous by thread: file is not of required architecture
  • Next by thread: Java Docs in Xcode 2.5
  • Index(es):
    • Date
    • Thread