<div dir="ltr"><div style><br></div><div style>After building py2cairo-1.10.0 with the following:</div><div style>> export PYTHON=/usr/bin/python2.6</div><div style>> python2.6 ./waf configure --prefix=$HOME<br></div>
<div style>> python2.6 ./waf build</div><div style>> python2.6 ./waf install<br></div><div style><br></div><div style>I get the following errors after importing cairo with the following:</div><div style>cd $HOME/pycairo/lib/python2.6/site-packages/cairo</div>
<div style>python2.6<br></div><div>>> import cairo</div><div style><div style>>> ImportError: ./cairo.so: undefined symbol: cairo_surface_get_fallback_resolution</div><div style><br></div><div style>ldd -r cairo.so gives:</div>
<div style><div>ldd: warning: you do not have execution permission for `./cairo.so'</div><div><span class="" style="white-space:pre">     </span>linux-gate.so.1 =>  (0xffffe000)</div><div><span class="" style="white-space:pre">        </span>libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb7769000)</div>
<div><span class="" style="white-space:pre">    </span>libm.so.6 => /lib/libm.so.6 (0xb7743000)</div><div><span class="" style="white-space:pre">        </span>libpthread.so.0 => /lib/libpthread.so.0 (0xb772b000)</div><div><span class="" style="white-space:pre">    </span>libdl.so.2 => /lib/libdl.so.2 (0xb7727000)</div>
<div><span class="" style="white-space:pre">    </span>libutil.so.1 => /lib/libutil.so.1 (0xb7722000)</div><div><span class="" style="white-space:pre">  </span>libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0xb75ab000)</div>
<div><span class="" style="white-space:pre">    </span>libc.so.6 => /lib/libc.so.6 (0xb7450000)</div><div><span class="" style="white-space:pre">        </span>libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb73e0000)</div><div>
<span class="" style="white-space:pre">       </span>libz.so.1 => /usr/lib/libz.so.1 (0xb73cc000)</div><div><span class="" style="white-space:pre">    </span>libfontconfig.so.1 => /usr/X11R6/lib/libfontconfig.so.1 (0xb73a5000)</div>
<div><span class="" style="white-space:pre">    </span>libpng12.so.0 => /home/vdevos/libpng/lib/libpng12.so.0 (0xb7383000)</div><div><span class="" style="white-space:pre">     </span>libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0xb737b000)</div>
<div><span class="" style="white-space:pre">    </span>libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb72b4000)</div><div><span class="" style="white-space:pre">  </span>libpixman-1.so.0 => /home/vdevos/pixman/lib/libpixman-1.so.0 (0xb7224000)</div>
<div><span class="" style="white-space:pre">    </span>/lib/ld-linux.so.2 (0xb77f0000)</div><div><span class="" style="white-space:pre">    </span>libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb7204000)</div><div><span class="" style="white-space:pre">    </span>libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb71f5000)</div>
<div>undefined symbol: cairo_surface_get_fallback_resolution<span class="" style="white-space:pre">     </span>(./cairo.so)</div><div>undefined symbol: cairo_toy_font_face_get_slant<span class="" style="white-space:pre">        </span>(./cairo.so)</div>
<div>undefined symbol: cairo_scaled_font_get_scale_matrix<span class="" style="white-space:pre">        </span>(./cairo.so)</div><div>undefined symbol: cairo_toy_font_face_get_weight<span class="" style="white-space:pre">       </span>(./cairo.so)</div>
<div>undefined symbol: cairo_toy_font_face_get_family<span class="" style="white-space:pre">    </span>(./cairo.so)</div><div>undefined symbol: cairo_toy_font_face_create<span class="" style="white-space:pre">   </span>(./cairo.so)</div>
<div><br></div><div style>I'm using the following version of Python and Cairo:</div><div style><br></div><div style>pkg-config --modversion cairo: <br></div></div><div>1.12.14</div></div><div><br></div><div style>python --version</div>
<div style>Python 2.6.4</div><div style><br></div><div style>I have rebuild Cairo (needed to rebuild pixman, glib and libpng for this) but I keep ending up with the same problem and I can't find the problem (or better; the solution).</div>
<div style><br></div><div style>Thanks in advance!</div><div style><br></div><div style><br></div><div><br></div><div><br></div><br clear="all"><div><br></div><br>
</div>