cairo-1.4.2

Introduction to cairo

cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System, win32, image buffers, PostScript, PDF and SVG. Experimental backends include OpenGL (through glitz), Quartz and XCB file output. cairo is designed to produce consistent output on all output media while taking advantage of display hardware acceleration when available (e.g., through the X Render Extension). The cairo API provides operations similar to the drawing operators of PostScript and PDF. Operations in cairo include stroking and filling cubic Bézier splines, transforming and compositing translucent images, and antialiased text rendering. All drawing operations can be transformed by any affine transformation (scale, rotation, shear, etc.).

Package Information

  • Download (HTTP): http://cairographics.org/releases/cairo-1.4.2.tar.gz

  • Download MD5 sum: b254633046eafe603776d0bee791b751

  • Download size: 2.9 MB

  • Estimated disk space required: 31 MB (additional 47 MB to run the test suite)

  • Estimated build time: 0.5 SBU (additional 1.7 SBU to run the test suite)

cairo Dependencies

Required

X Window System and pkg-config-0.21

Optional

glitz, DirectFB, Open Quartz, XCB, and GTK-Doc-1.8

Optional (to provide extended test suite coverage)

GTK+-2.10.11 (for testing the PDF backend), Poppler-0.4.5 (for testing the PDF backend), librsvg-2.16.1 (for testing the SVG backend), and LTP

Note that the GTK, Poppler and librsvg packages are circular in that using them for test suite coverage requires installing cairo first, then installing the desired package(s), then installing cairo again.

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/cairo

Installation of cairo

cairo will look for an X Render pkg-config file. If you use XFree86 as your X Window system, ensure this file exists (/usr/X11R6/lib/pkgconfig/xrender.pc) before beginning the installation.

Install cairo by running the following commands:

./configure --prefix=/usr &&
make

To test the results, issue: make check. Note that as many as 35 of the tests are known to fail for unknown reasons. If you do not have a gs binary in your path, many (up to 85 of the 122) of the tests will fail. Also, to enhance test coverage, the tests should be run with an available X Window screen (e.g. from a local xterm or equivalent window).

Now, as the root user:

make install

Command Explanations

--enable-gtk-doc: Use this parameter if GTK-Doc is installed and you wish to rebuild the API documentation.

Contents

Installed Programs: None
Installed Libraries: libcairo.{so,a}
Installed Directories: /usr/include/cairo and /usr/share/gtk-doc/html/cairo

Short Descriptions

libcairo.{so,a}

contains the 2D graphics functions required for rendering to the various output targets.

Last updated on 2007-04-04 21:42:53 +0200