[cairo] compile cairo on ubuntu hardy

Alexander Shulgin alex.shulgin at gmail.com
Sat Apr 24 06:20:18 PDT 2010


On Fri, Apr 23, 2010 at 20:56, Prashant Saxena <animator333 at yahoo.com> wrote:
> Hi,
>
> I am trying to compile latest cairo library on ubuntu "hardy" 8.04. I am a newbie on linux and my c/c++ skills are some what limited.
> Once cairo is build, I have to build pyCairo 1.8.8 to use with wxPython.
>
> So far I am able to build pixman only. Here are the commands
>
> # build pixman from sources
> 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 this env var to point out "pixman-1.pc" path
> export PKG_CONFIG_PATH=/home/prashant/installed/pixman-0.18.0

Why not "=/usr/local/lib/pkg-config" ?

> # create symbolic links
> sudo ln -s /usr/local/include/pixman-1/pixman.h
> sudo ln -s /usr/local/include/pixman-1/pixman-version.h

It should not be necessary to do this.  BTW, in which directory is this?

> # build cairo from sources
> wget http://www.cairographics.org/releases/cairo-1.8.8.tar.gz
> tar xvf cairo-1.8.8.tar.gz
> cd cairo-1.8.8
> ./configure --prefix=/usr/local
> make
>
> In the end of "make", I am getting this error:
>
> libtool: link: cannot find the library `..//home/prashant/installed/pixman-0.18.0/pixman/libpixman-1.la' or unhandled argument `..//home/prashant/installed/pixman-0.18.0/pixman/libpixman-1.la'
>
> File "/libpixman-1.la" is present in the directory.
>
> I would appreciate if some one point out the problem.

I wonder if these commands didn't get you where you going:

$ sudo apt-get build-dep pixman
(now download pixman)
$ cd pixman
$ ./configure
$ make
$ sudo make install

$ sudo apt-get build-dep cairo
(now download cairo)
$ cd cairo
$ ./configure
$ make
$ sudo make install

--
Alex


More information about the cairo mailing list