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-8.1
platform.
Package Information
Cairo Dependencies
Required
libpng-1.6.31 and Pixman-0.34.0
Recommended
Fontconfig-2.12.4, GLib-2.52.3
(required for most GUIs) and Xorg Libraries
Optional
Cogl-1.22.2, ghostscript-9.21,
GTK+-3.22.18 and GTK+-2.24.31, GTK-Doc-1.26, libdrm-2.4.82, librsvg-2.40.18, LZO-2.10, Mesa-17.1.6,
Poppler-0.57.0, Valgrind-3.13.0, DirectFB,
jbig2dec, libspectre,
Skia, and Qt4.
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/cairo
Installation of Cairo
Install Cairo by running the
following commands:
./configure --prefix=/usr \
--disable-static \
--enable-tee &&
make
This package does not have a working testsuite.
Now, as the root
user:
make install
Command Explanations
--enable-tee
: This switch
enables the 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
several experimental Xlib/XCB functions used by some window
managers.
--enable-gl
: This switch enables
Cairo's experimental OpenGL surface which is required for
Wayland compositor and some other
packages that are not part of BLFS.
--enable-gtk-doc
: Use this parameter if
GTK-Doc is installed and you wish
to rebuild and install the API documentation.