Re: Incompatibilities between home-compiled and apple's libpng
Re: Incompatibilities between home-compiled and apple's libpng
- Subject: Re: Incompatibilities between home-compiled and apple's libpng
- From: Damien Bobillot <email@hidden>
- Date: Mon, 10 Oct 2005 14:49:33 +0200
D. Walsh wrote :
On Oct 10, 2005, at 07:05 , Damien Bobillot wrote:
Everything work until I tried to launch my program. The dynamic
loader says :
dyld: Library not loaded: /System/Library/Frameworks/
ApplicationServices.framework/
Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/
libPng.dylib
Referenced from: /System/Library/Frameworks/
ApplicationServices.framework/
Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
Reason: Incompatible library version: ImageIO requires version
1.0.0 or later,
but libpng12.0.dylib provides version 0.1.2
However, Apple's version did not export any useful symbols, so I
can't use the ImageIO/libPng.dylib lib, I must use my home-
compiled version.
repackage the library with the correct values.
mkdir /libfix
# save the libs in case we have a probelm
(cd /usr/local/lib && tar cf - libpng.* | (cd /libfix && tar xf -))
libtool -dynamic -o /usr/local/lib/libpng12.0.1.2.8.dylib -
framework ApplicationServices -lSystem -lz -lcc_dynamic -
compatibility_version 1.0.0 -current_version 1.0.2 -arch_only ppc /
usr/local/lib/libpng.a
"-lcc_dynamic" doesn't work on my system (10.4.2) but I've replaced
it by "-lSystemStubs" with success. Thank you.
However, I've another question about that. If in the futur the
compatibility version of Apple's library became greater than 1.0.2,
will my program have the same problem again ? I think the answer is
yes, so your solution is not perfect (but works, which is a good
thing ;).
--
Damien Bobillot
_______________________________________________
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