• 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: 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


  • Follow-Ups:
    • Re: Incompatibilities between home-compiled and apple's libpng
      • From: "D.Walsh" <email@hidden>
    • Re: Incompatibilities between home-compiled and apple's libpng
      • From: "Peter O'Gorman" <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>)

  • Prev by Date: Re: Moving from OSX 10.3 (XCode 1.5) to OSX 10.4 (XCode 2.1)
  • Next by Date: Re: Incompatibilities between home-compiled and apple's libpng
  • Previous by thread: Re: Incompatibilities between home-compiled and apple's libpng
  • Next by thread: Re: Incompatibilities between home-compiled and apple's libpng
  • Index(es):
    • Date
    • Thread