Cairo-1.12.16

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, 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.).

This package is known to build and work properly using an LFS-7.6 systemd platform.

Package Information

Cairo Dependencies

Required

libpng-1.6.13, GLib-2.40.0 and Pixman-0.32.6

Recommended

Optional

Cogl-1.18.2, DirectFB, GTK-Doc-1.20, libdrm-2.4.56, LZO-2.08, Qt-4.8.6, Skia, and Valgrind-3.10.0

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

Installation of Cairo

Install Cairo by running the following commands:

CFLAGS="$CFLAGS -O2 -g -ffat-lto-objects" \
./configure --prefix=/usr    \
            --enable-gl      \
            --enable-tee     \
            --disable-static &&
make

This package does not have a working testsuite.

Now, as the root user:

make install

Command Explanations

CFLAGS="$CFLAGS -O2 -g -ffat-lto-objects": Last compiler flag fixes building with GCC 4.9, while the other two are the standard autoconf flags.

--enable-gl: This switch enables experimental OpenGL surface backend which is required for Weston. Remove it if you have not installed MesaLib-10.2.7.

--enable-tee: This switch enables experimental tee surface backend which is required if using system-installed Cairo with Mozilla applications.

--disable-static: This switch prevents installation of static versions of the libraries.

--enable-xlib-xcb: This switch enables experimental Xlib/XCB functions used by some window managers.

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

Contents

Installed Programs: cairo-sphinx and cairo-trace
Installed Libraries: libcairo.so, libcairo-gobject.so and libcairo-script-interpreter.so
Installed Directories: /usr/include/cairo, /usr/lib/cairo and /usr/share/gtk-doc/html/cairo

Short Descriptions

cairo-trace

generates a log of all calls made by an application to Cairo.

libcairo.so

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

libcairo-gobject.so

contains functions that integrate Cairo with GLib-2.40.0's GObject type system.

libcairo-script-interpreter.so

contains the script interpreter functions for executing and manipulating Cairo execution traces.

Last updated on 2014-08-22 13:59:17 -0700