[cairo] cairo@cairographics.org

Jeremy Brewer jeremy.d.brewer at gmail.com
Mon Jan 8 19:20:59 PST 2007


I successfully installed libpng, fontconfig, freetype, and cairo from  
source in /usr/local on Mac OS X 10.4.8 (Intel) prior to installing  
pycairo.  I am using Python 2.4.4 also in /usr/local.

When I compiled pycairo, it compiled and installed without error, but  
when I try to import the cairo module in Python I get a link error, e.g.

 >>> import cairo
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/local/lib/python2.4/site-packages/cairo/__init__.py",  
line 1, in ?
     from _cairo import *
ImportError: Failure linking new module: /usr/local/lib/python2.4/ 
site-packages/cairo/_cairo.so: Symbol not found:  
__cg_png_create_info_struct
   Referenced from: /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/ 
Versions/A/ImageIO
   Expected in: /usr/local/lib/libPng.dylib

Obviously it's trying to load the Apple PNG library, but I am not  
sure how to fix this.  Any ideas on how to force the correct library  
to be loaded?

Jeremy


More information about the cairo mailing list