• 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" error on most sample code builds on xcode 3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "file is not of required architecture" error on most sample code builds on xcode 3


  • Subject: Re: "file is not of required architecture" error on most sample code builds on xcode 3
  • From: Chris Espinosa <email@hidden>
  • Date: Sat, 10 Nov 2007 13:50:25 -0800

A number of people have run into this (and, oddly, it was never reported during the 18 months of Xcode 3 seeding).

Some third-party package (I'm told it's fink) installs a thin set of libraries in /usr/local/lib, and the 10.4u SDK has a symlink that allows you to use local libs when using the SDK. IOKit tries to link against the system's (fat) libTIFF but it grabs the (thin) local one instead.

The solution is to clear out /usr/local/lib.

Chris



Top-posted from my iPhone

On Nov 10, 2007, at 2:00 AM, Ian Grant <email@hidden> wrote:

Hi I am getting an error on most (all) sample code I build at present on leopard.

Here's an example error message:
/Users/iboy/Downloads/VideoHardwareInfo/build/ VideoHardwareInfo.build/Development/VideoHardwareInfo.build/Objects- normal/ppc/VideoHardwareInfo.LinkFileList -framework Cocoa - framework IOKit -framework OpenGL -arch ppc -prebind -mmacosx- version-min=10.3 -bind_at_load -isysroot /Developer/SDKs/ MacOSX10.4u.sdk
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libTIFF.dylib, file is not of required architecture
collect2: ld returned 1 exit status
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/ libTIFF.dylib, file is not of required architecture
collect2: ld returned 1 exit status


Most settings default to targetting Mac OS 10.4 (Universal)
Using: $(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk
ppc i386

I am quite suspicious of that libTIFF.dylib.

As soon as I change the project setting to target the current platform or Mac OS 10.5 - the projects build.
Is there something else I am missing, or is that libTIFF of the wrong architecture?


Thanks, Ian


******************************* Ian Grant Senior Lecturer in Digital Art Faculty of the Arts Thames Valley University Ealing, UK W5 5DX <email@hidden> *******************************



_______________________________________________
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
_______________________________________________
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: "file is not of required architecture" error on most sample code builds on xcode 3
      • From: Alastair Houghton <email@hidden>
    • Re: "file is not of required architecture" error on most sample code builds on xcode 3
      • From: Jonas Maebe <email@hidden>
References: 
 >"file is not of required architecture" error on most sample code builds on xcode 3 (From: Ian Grant <email@hidden>)

  • Prev by Date: Re: Bus error on Leopard with 64-bit program
  • Next by Date: Re: Anybody really, really using Xcode 3 ?
  • Previous by thread: Re: "file is not of required architecture" error on most sample code builds on xcode 3
  • Next by thread: Re: "file is not of required architecture" error on most sample code builds on xcode 3
  • Index(es):
    • Date
    • Thread