Re: leopard: No universal libjpeg.dylib in 10.4SDK?
Re: leopard: No universal libjpeg.dylib in 10.4SDK?
- Subject: Re: leopard: No universal libjpeg.dylib in 10.4SDK?
- From: Bill Bumgarner <email@hidden>
- Date: Sun, 20 Jan 2008 21:22:57 -0800
On Jan 20, 2008, at 9:11 PM, Marc Lohse wrote:
I have recently bought a new iMac with leopard and moved
a small cocoa project that i had started in Xcode 2.4.1 on a
powerbook G4 running tiger to the new machine. Everything
looked fine in Xcode 3 and i could continue working on it.
Since i mainly wrote it for a friend with a powerbook i need
to build it as a universal binary - but my attempts to build
a release build on the iMac gave me this error:
[...]
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libJPEG.dylib,
file is not of required architecture
[...]
the libjepeg is not a fat binary - it does only contain i386 code
(checked it using 'file' and 'lipo -info'). Have i made some kind
of stupid mistake or does the 10.4 SDK on my machine really
lack a 'fat' version of this lib and if so where can i get it?
thanks in advance
marc
p.s.: the project settings say that it's a Xcode 2.4 compatible
project
and Cross-Develop using Target SDK: Mac OS X 10.4 (Universal)
...
[aalbbum:~] bbum% ls -alF /Developer/SDKs/MacOSX10.4u.sdk/usr/local/
total 8
drwxr-xr-x 3 root wheel 102 Oct 14 12:30 ./
drwxr-xr-x 8 root wheel 272 Mar 16 2007 ../
lrwxr-xr-x 1 root wheel 14 Oct 14 12:30 lib@ -> /usr/local/lib
You have a thin version of libJPEG.dylib installed in /usr/local/
lib. That is your problem. You likely need to rebuild the jpeg
library for both desired architectures.
(The library in question was not from Apple, btw. The alternative is
to use the various APIs on the system that deal with JPEGs.)
b.bum
_______________________________________________
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