• 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 07:54:19 -0400
  • Mta-interface: amavisd-new-2.3.3 (20050822) at daleenterprise.com


On Oct 10, 2005, at 07:05 , Damien Bobillot wrote:

Hello,

I'm working on a project depending on OpenGL, X11 and libpng.

I've compiled the libpng library from the sources, which create the .dylib file with the following version informations :
-current_version 0.1.2.8 -compatibility_version 0.1.2.8


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



(Apple X11 libGL.dylib need ApplicationServices.framework which itself need ImageIO)


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.

Any ideas to solve this problem ?

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


--
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
  • Follow-Ups:
    • Re: Incompatibilities between home-compiled and apple's libpng
      • From: Damien Bobillot <email@hidden>
References: 
 >Incompatibilities between home-compiled and apple's libpng (From: Damien Bobillot <email@hidden>)

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