2005-09-21 03:33:01 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2005-09-21 03:33:01 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
|
|
|
<!ENTITY cairo-download-http "http://cairographics.org/releases/cairo-&cairo-version;.tar.gz">
|
2009-08-01 02:10:06 +08:00
|
|
|
<!ENTITY cairo-download-ftp "&gentoo-ftp-repo;/cairo-&cairo-version;.tar.gz">
|
2011-11-24 07:25:44 +08:00
|
|
|
<!ENTITY cairo-md5sum "f101a9e88b783337b20b2e26dfd26d5f">
|
|
|
|
<!ENTITY cairo-size "22.5 MB">
|
|
|
|
<!ENTITY cairo-buildsize "145 MB (up to an additional 454 MB to run the test suite)">
|
2011-12-12 13:30:20 +08:00
|
|
|
<!ENTITY cairo-time "0.7 SBU (up to an additional 2 SBU to run the test suite)">
|
2005-09-21 03:33:01 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="cairo" xreflabel="cairo-&cairo-version;">
|
|
|
|
<?dbhtml filename="cairo.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>cairo-&cairo-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="cairo">
|
|
|
|
<primary sortas="a-cairo">cairo</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to cairo</title>
|
|
|
|
|
2011-11-24 07:25:44 +08:00
|
|
|
<para><application>Cairo</application> is a 2D graphics library with
|
2005-09-21 03:33:01 +08:00
|
|
|
support for multiple output devices. Currently supported output targets
|
2006-10-05 20:51:08 +08:00
|
|
|
include the <application>X</application> Window System, win32, image
|
|
|
|
buffers, PostScript, PDF and SVG. Experimental backends include OpenGL
|
2011-11-24 07:25:44 +08:00
|
|
|
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
|
|
|
|
<application>Cairo</application> API provides operations similar to the
|
|
|
|
drawing operators of PostScript and PDF. Operations in
|
|
|
|
<application>Cairo</application> include stroking and filling cubic
|
|
|
|
Bézier splines, transforming and compositing translucent images, and
|
2005-09-21 03:33:01 +08:00
|
|
|
antialiased text rendering. All drawing operations can be transformed by
|
2011-11-24 07:25:44 +08:00
|
|
|
any <ulink url="http://en.wikipedia.org/wiki/Affine_transformation">affine
|
|
|
|
transformation</ulink> (scale, rotation, shear, etc.).</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
2012-03-05 23:41:10 +08:00
|
|
|
&lfs71_checked;
|
2009-08-01 02:10:06 +08:00
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&cairo-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&cairo-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &cairo-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &cairo-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &cairo-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &cairo-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">cairo Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2011-11-24 07:25:44 +08:00
|
|
|
<para role="required"><xref linkend="pkgconfig"/>, <xref linkend="libpng"/>,
|
|
|
|
<xref linkend="pixman"/>, and <xref linkend="fontconfig"/></para>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
2008-11-28 06:33:45 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
2011-11-24 07:25:44 +08:00
|
|
|
<para role="recommended"><xref linkend="x-window-system"/> (gtk requires
|
|
|
|
cairo to be built after libX11 is installed)</para>
|
2008-11-28 06:33:45 +08:00
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2011-11-24 07:25:44 +08:00
|
|
|
<para role="optional"><xref linkend="gtk-doc"/>,
|
2009-08-01 02:10:06 +08:00
|
|
|
<ulink url="http://www.directfb.org/">DirectFB</ulink>,
|
2011-11-24 07:25:44 +08:00
|
|
|
<ulink url="http://code.google.com/p/skia/">Skia</ulink> and
|
2009-08-01 02:10:06 +08:00
|
|
|
<ulink url="http://www.valgrind.org">Valgrind</ulink></para>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
2006-10-05 20:51:08 +08:00
|
|
|
<bridgehead renderas="sect4">Optional (to provide extended test suite
|
|
|
|
coverage)</bridgehead>
|
2011-11-24 07:25:44 +08:00
|
|
|
<para role="optional"><xref linkend="gs"/> (to test the postscript
|
|
|
|
backend), <xref linkend="gtk2"/> (for testing the PDF backend),
|
|
|
|
<xref linkend="poppler"/> (for testing the PDF backend),
|
|
|
|
<ulink url="http://libspectre.freedesktop.org">libspectre</ulink> (to test
|
|
|
|
the PDF backend) and <xref linkend="librsvg"/> (for testing the SVG
|
|
|
|
backend)</para>
|
2006-10-05 20:51:08 +08:00
|
|
|
|
|
|
|
<para>Note that the GTK, Poppler and librsvg packages are circular in that
|
2011-11-24 07:25:44 +08:00
|
|
|
using them for test suite coverage requires installing cairo first, then
|
|
|
|
installing the desired package(s), then installing cairo again. As the test
|
|
|
|
suite seems to be somewhat broken it doesn't seem worth the effort.</para>
|
2006-10-05 20:51:08 +08:00
|
|
|
|
2006-04-11 02:39:30 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/cairo"/></para>
|
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of cairo</title>
|
|
|
|
|
2011-11-24 07:25:44 +08:00
|
|
|
<para>Install <application>Cairo</application> by running the following
|
2005-09-21 03:33:01 +08:00
|
|
|
commands:</para>
|
|
|
|
|
2011-11-24 07:25:44 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr --enable-tee --enable-gl &&
|
2005-09-21 03:33:01 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2011-11-24 07:25:44 +08:00
|
|
|
<para>To test the results, issue: <command>make -k check</command>.</para>
|
2009-08-02 01:56:37 +08:00
|
|
|
|
2011-11-24 07:25:44 +08:00
|
|
|
<para>Note that the tests take a long time to run and many of them fail for
|
|
|
|
unknown reasons.</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
2011-11-24 07:25:44 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem>
|
|
|
|
user:</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2006-03-28 00:42:24 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2006-06-26 23:45:37 +08:00
|
|
|
href="../../xincludes/gtk-doc-rebuild.xml"/>
|
|
|
|
|
2011-11-24 07:25:44 +08:00
|
|
|
<para><option>--enable-tee</option>: This is used by
|
|
|
|
<application>Firefox</application>. If you don't enable the Cairo's tee
|
|
|
|
surface back end you won't be able to build
|
|
|
|
<application>Firefox</application> with
|
|
|
|
<option>--enable-system-cairo</option>.</para>
|
2008-11-28 06:33:45 +08:00
|
|
|
|
2011-11-24 07:25:44 +08:00
|
|
|
<para><option>--enable-gl</option>: Enable the
|
|
|
|
<application>Cairo</application> OpenGL back end. Remove this option if
|
|
|
|
you've not installed <xref linkend="mesalib"/>.</para>
|
|
|
|
|
|
|
|
<para><option>--enable-xcb</option>: Enable
|
|
|
|
<application>Cairo</application>'s <xref linkend="libxcb"/> back end.</para>
|
|
|
|
|
|
|
|
<para><option>--disable-static</option>: Prevent static libraries being
|
|
|
|
built and installed.</para>
|
|
|
|
|
|
|
|
<para><option>--enable-vg</option>: Enable the
|
|
|
|
<application>Cairo</application>
|
|
|
|
<ulink url="http://en.wikipedia.org/wiki/OpenVG">OpenVG</ulink> back
|
|
|
|
end (requires <xref linkend="mesalib"/> installed, configured with
|
|
|
|
--enable-gallium-egl and --enable-openvg).</para>
|
2008-11-28 06:33:45 +08:00
|
|
|
|
2006-03-28 00:42:24 +08:00
|
|
|
</sect2>
|
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
2009-08-01 02:10:06 +08:00
|
|
|
<segtitle>Installed Library</segtitle>
|
2005-09-21 03:33:01 +08:00
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2011-11-24 07:25:44 +08:00
|
|
|
<seg>cairo-trace</seg>
|
|
|
|
<seg>libcairo.{so,a}, libcairo-gobject.{so,a} and
|
|
|
|
libcairo-script-interpreter.{so,a}</seg>
|
|
|
|
<seg>/usr/include/cairo, usr/lib/cairo and
|
|
|
|
/usr/share/gtk-doc/html/cairo</seg>
|
2005-09-21 03:33:01 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2011-11-24 07:25:44 +08:00
|
|
|
<varlistentry id="cairo-trace">
|
|
|
|
<term><command>cairo-trace</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>generates a log of all calls made by an application to
|
|
|
|
<application>Cairo</application>.</para>
|
|
|
|
<indexterm zone="cairo cairo-trace">
|
|
|
|
<primary sortas="b-cairo-trace">cairo-trace</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
<varlistentry id="libcairo">
|
2006-04-11 02:39:30 +08:00
|
|
|
<term><filename class='libraryfile'>libcairo.{so,a}</filename></term>
|
2005-09-21 03:33:01 +08:00
|
|
|
<listitem>
|
|
|
|
<para>contains the 2D graphics functions required for rendering to
|
|
|
|
the various output targets.</para>
|
|
|
|
<indexterm zone="cairo libcairo">
|
2006-04-11 02:39:30 +08:00
|
|
|
<primary sortas="c-libcairo">libcairo.{so,a}</primary>
|
2005-09-21 03:33:01 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2011-11-24 07:25:44 +08:00
|
|
|
<varlistentry id="libcairo-gobject">
|
|
|
|
<term><filename class='libraryfile'>libcairo-gobject.{so,a}</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>contains functions that integrate
|
|
|
|
<application>Cairo</application> with <xref linkend="glib2"/>'s
|
|
|
|
GObject type system.</para>
|
|
|
|
<indexterm zone="cairo libcairo-gobject">
|
|
|
|
<primary sortas="c-libcairo-gobject">libcairo-gobject.{so,a}</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libcairo-script-interpreter">
|
|
|
|
<term><filename class='libraryfile'>libcairo-script-interpreter.{so,a}</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>contains the script interpreter functions for executing and
|
|
|
|
manipulating <application>Cairo</application> execution traces.</para>
|
|
|
|
<indexterm zone="cairo libcairo-script-interpreter">
|
|
|
|
<primary sortas="c-libcairo-script-interpreter">libcairo-script-interpreter.{so,a}</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|