Re: libPng.dylib: "file is not of required architecture"
Re: libPng.dylib: "file is not of required architecture"
- Subject: Re: libPng.dylib: "file is not of required architecture"
- From: Marc Lohse <email@hidden>
- Date: Fri, 8 Feb 2008 11:41:37 +0100
i think i have had a related problem a while ago that was caused
by the fact that the /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/
directory in the 10.4 SDK was actually a link to /usr/local/lib. And
this dir does of course not always only contain universal binary libs.
This is what people that are smarter than me answered :
No. It's a problem that's been caused by the combination of the new
linker, the 10.4 version of ImageIO, the fact that you had already built
copies of libjpeg et al. on your system and the fact that there is a
symlink in the SDK.
IMO the symlink in the SDK is a mistake, so the best fix is
sudo rm /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib
sudo mkdir /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib
That way, your 10.4u SDK really does represent a clean 10.4 system,
which (I think) is what most people want. It's certainly what *I* want.
You might also want to read the whole thread:
http://lists.apple.com/archives/cocoa-dev/2008/Jan/msg01231.html
Hope this helps,
cheers,
Marc
Jacob Bandes-Storch schrieb:
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
--
---------------------------------------------------
Dr. Marc Lohse
Max-Planck-Institute of molecular Plant Physiology
Dept. Bock
Am Muehlenberg 1
14476 Potsdam-Golm
Tel. : 0331-5678-313
e-mail : 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