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: "Peter O'Gorman" <email@hidden>
- Date: Mon, 10 Oct 2005 22:09:39 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Damien Bobillot wrote:
|
| 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
|>
|>
|> repackage the library with the correct values.
|> 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
I think that you'll find that this only works by accident. By (mis)using
libtool as above you set the libraries install_name to
/usr/local/lib/libpng12.0.1.2.8.dylib while it previously was, I guess,
libpng.dylib, and you can see how, on case-insensitive file systems, the
dynamic linker might get confused between libPng.dylib and libpng.dylib.
There is also a little bug in the dynamic linker in Mac OS X 10.4.x with x <
3 where it will not load libraries with the same basename twice...
Peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)
iQCVAwUBQ0poE7iDAg3OZTLPAQJMNQP+L0OJO/TrMwwha5T6B0RlrFb2FA7xrgad
nNiYbWLbVutZIbpriURM15mchLCKEExnWxGwsQ/bgDLPZHFFUunxavcJgoQAHxCv
vsflSVULDm1hL2evDaJq4ykaW+R8J0SM5Wb00eJabei2V/eRculbjBKeljAjPZ3c
0WnK3kWFrNI=
=cvnf
-----END PGP SIGNATURE-----
_______________________________________________
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