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 12.4 platform.
Package Information
Download (HTTP): https://www.cairographics.org/releases/cairo-1.18.4.tar.xz
Download SHA256 Sum: 445ed8208a6e4823de1226a74ca319d3600e83f6369f99b14265006599c32ccb
Download MD5 sum: db575fb41bbda127e0147e401f36f8ac
Download size: 59,375.3 KB
Estimated disk space required: 79,698.6 KB
Estimated build time: less than 1.0 SBU
Cairo Dependencies
Required
libpng-1.6.50 and
Pixman-0.46.4
Recommended
Fontconfig-2.17.1,
GLib-2.86.2 (required for most GUIs), and
Xorg7 Libraries
Optional
,
libdrm-2.4.129,
libxml2-2.15.1,
and libspectre
![[Note]](../images/note.png)
Note
There is a circular dependency between cairo and harfbuzz.
If cairo is built before harfbuzz, it is necessary to rebuild cairo
after harfbuzz in order to build pango.
Installation of Cairo
Prepare Cairo by running the following
commands:
meson setup build --prefix=/usr --buildtype=release
ninja -C build
This package does not have a working test suite.
Now Install, as the root user:
ninja -C build install
Command Explanations
-D xlib-xcb=enabled: This switch enables several
experimental Xlib/XCB functions used by some window managers.
-D gtk_doc=true: Use this parameter if GTK-Doc is
installed and you wish to create and install the documentation.