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

本パッケージは LFS-9.1 において正しくビルドでき動作することが確認されています。


Cairo の依存パッケージ


libpng-1.6.37, Pixman-0.38.4



Cogl-1.22.6, ghostscript-9.50, GTK+-3.24.14 and GTK+-2.24.32, GTK-Doc-1.32, libdrm-2.4.100, librsvg-2.46.4, libxml2-2.9.10, LZO-2.10, Mesa-20.0.1, Poppler-0.86.1, Qt-5.14.1, Valgrind-3.15.0, DirectFB, jbig2dec, libspectre, Skia, and Qt4.



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.


Cairo のインストール

以下のコマンドを実行して Cairo をビルドします。

./configure --prefix=/usr    \
            --disable-static \
            --enable-tee &&


root ユーザーになって以下を実行します。

make install


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

--disable-static: このスイッチはスタティックライブラリをインストールしないようにします。

--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: GTK-Doc をインストール済で API ドキュメントを再構築する場合に指定します。


インストールプログラム: cairo-sphinx, cairo-trace
インストールディレクトリ: /usr/{include,lib,share/gtk-doc/html}/cairo



is an internal utility for regression analysis.


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

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

contains functions that integrate Cairo with Glib's GObject type system.

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

最終更新日: 2020-03-05 01:15:03 +0900