Hi,
This is a simple guide for compiling latest cairo and pycairo from
sources. I am using latest packages:
1. pixman-0.18.0
2. cairo-1.8.10
3. pycairo-1.8.8
# build pixman from sources. It's required to build cairo.
$wget http://www.cairographics.org/releases/pixman-0.18.0.tar.gz
$tar xvf pixman-0.18.0.tar.gz
$cd pixman-0.18.0
$./configure --prefix=/usr/local
$make
$sudo make install
# create PKG_CONFIG_PATH env var to point out "pixman-1.pc" path. In
my case this is directory where
# I untar the contents of pixman-0.18.0.tar.gz.
export PKG_CONFIG_PATH=/home/<user>/installed/pixman-0.18.0
# build cairo from sources
$wget http://www.cairographics.org/releases/cairo-1.8.10.tar.gz
$tar xvf cairo-1.8.10.tar.gz
$cd cairo-1.8.10
$pixman_LIBS="/usr/local/lib" CPPFLAGS="-I/usr/local/include/pixman-1"
LDFLAGS="-L/usr/local/lib" ./configure --prefix=/usr/local
$make
$make install
# Extend PKG_CONFIG_PATH & create LD_LIBRARY_PATH
$export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
$export LD_LIBRARY_PATH=/usr/local/lib
# build pycairo from sources
$wget http://www.cairographics.org/releases/pycairo-1.8.8.tar.gz
$tar xvf pycairo-1.8.8.tar.gz
$cd pycairo-1.8.8
$./configure
$make
$make install
All the libs(pixman & cairo) will be installed in "usr/local" and
"pycairo" will be installed in:
"/usr/local/lib/pythonX.Y/site-packages/cairo"
pythonX.Y is the default python installed on your distro.
NOTE:
if more experienced users find any glitches then please update/edit
the script.
Cheers
Prashant
ยทยทยท
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en