• 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: Incompatibilities between home-compiled and apple's libpng
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Incompatibilities between home-compiled and apple's libpng


  • Subject: Re: Incompatibilities between home-compiled and apple's libpng
  • From: "D.Walsh" <email@hidden>
  • Date: Mon, 10 Oct 2005 20:43:21 -0400
  • Mta-interface: amavisd-new-2.3.3 (20050822) at daleenterprise.com


On Oct 10, 2005, at 08:49 , 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




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.



I'm using 10.4.2 as well and yes -lSystemStubs is basically the same so should work.



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 ;).


As far as I know, they shouldn't be changing the compatibility_version unless they use a newer version that has features that aren't compatible with the existing library but most developers try to make things forward compatible whenever possible.



--
Damien Bobillot


-- Dale


_______________________________________________ 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
References: 
 >Incompatibilities between home-compiled and apple's libpng (From: Damien Bobillot <email@hidden>)
 >Re: Incompatibilities between home-compiled and apple's libpng (From: "D. Walsh" <email@hidden>)
 >Re: Incompatibilities between home-compiled and apple's libpng (From: Damien Bobillot <email@hidden>)

  • Prev by Date: [ANN] Next CocoaHeads: Oct 11 (Portland), Oct 13 (PIT, STL, BOS, SiliconValley)
  • Next by Date: Failed to load debugging library
  • Previous by thread: Re: Incompatibilities between home-compiled and apple's libpng
  • Next by thread: Property List Compiler for XCode
  • Index(es):
    • Date
    • Thread