Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

anni.saini

macrumors newbie
Original poster
Jul 15, 2009
18
0
Hi,

Anybody know how to solve this problem:

Dyld Error Message:
Library not loaded: /usr/X11/lib/libpng.3.dylib
Referenced from: /Library/Frameworks/Versions/A/Frameworks
/cairo.framework/Versions/A/Libraries/libcairo.2.dylib
Reason: Incompatible library version: libcairo.2.dylib requires version 39.0.0 or later, but libpng.3.dylib provides version 30.0.0

My application is showing this error on MAC OSX 10.5.6 and below version.

can anybody tell me how to resolve this problem?
 
I guess the most obvious question is are you sure you have version 39.0.0 or later of libpng?

It doesn't have, how do I upgrade that lib on Mac or using my application? Is there any setting available in XCode?
 
It doesn't have, how do I upgrade that lib on Mac or using my application? Is there any setting available in XCode?

You'll have to download it yourself before you can link to it. Try here. After installing on your system, add the file to your Xcode Frameworks folder so it can link to it (file should be in your /Library/Frameworks/ folder after installation).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.