[bb41bc7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[bb41bc7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY cairo-download-http "http://cairographics.org/releases/cairo-&cairo-version;.tar.gz">
|
---|
[3af39b1] | 8 | <!ENTITY cairo-download-ftp "&gentoo-ftp-repo;/cairo-&cairo-version;.tar.gz">
|
---|
[827336dc] | 9 | <!ENTITY cairo-md5sum "f101a9e88b783337b20b2e26dfd26d5f">
|
---|
| 10 | <!ENTITY cairo-size "22.5 MB">
|
---|
| 11 | <!ENTITY cairo-buildsize "145 MB (up to an additional 454 MB to run the test suite)">
|
---|
[e08a501] | 12 | <!ENTITY cairo-time "0.7 SBU (up to an additional 2 SBU to run the test suite)">
|
---|
[bb41bc7] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="cairo" xreflabel="cairo-&cairo-version;">
|
---|
| 16 | <?dbhtml filename="cairo.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>cairo-&cairo-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="cairo">
|
---|
| 26 | <primary sortas="a-cairo">cairo</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to cairo</title>
|
---|
| 31 |
|
---|
[827336dc] | 32 | <para><application>Cairo</application> is a 2D graphics library with
|
---|
[bb41bc7] | 33 | support for multiple output devices. Currently supported output targets
|
---|
[6e08fa52] | 34 | include the <application>X</application> Window System, win32, image
|
---|
| 35 | buffers, PostScript, PDF and SVG. Experimental backends include OpenGL
|
---|
[827336dc] | 36 | Quartz and XCB file output. cairo is designed to produce consistent output
|
---|
| 37 | on all output media while taking advantage of display hardware acceleration
|
---|
| 38 | when available (e.g., through the X Render Extension). The
|
---|
| 39 | <application>Cairo</application> API provides operations similar to the
|
---|
| 40 | drawing operators of PostScript and PDF. Operations in
|
---|
| 41 | <application>Cairo</application> include stroking and filling cubic
|
---|
| 42 | Bézier splines, transforming and compositing translucent images, and
|
---|
[bb41bc7] | 43 | antialiased text rendering. All drawing operations can be transformed by
|
---|
[827336dc] | 44 | any <ulink url="http://en.wikipedia.org/wiki/Affine_transformation">affine
|
---|
| 45 | transformation</ulink> (scale, rotation, shear, etc.).</para>
|
---|
[bb41bc7] | 46 |
|
---|
[4c77a949] | 47 | &lfs71_checked;
|
---|
[3af39b1] | 48 |
|
---|
[bb41bc7] | 49 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 50 | <itemizedlist spacing="compact">
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download (HTTP): <ulink url="&cairo-download-http;"/></para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download (FTP): <ulink url="&cairo-download-ftp;"/></para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Download MD5 sum: &cairo-md5sum;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Download size: &cairo-size;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>Estimated disk space required: &cairo-buildsize;</para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>Estimated build time: &cairo-time;</para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect3">cairo Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[827336dc] | 74 | <para role="required"><xref linkend="pkgconfig"/>, <xref linkend="libpng"/>,
|
---|
| 75 | <xref linkend="pixman"/>, and <xref linkend="fontconfig"/></para>
|
---|
[bb41bc7] | 76 |
|
---|
[bc9c1def] | 77 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[827336dc] | 78 | <para role="recommended"><xref linkend="x-window-system"/> (gtk requires
|
---|
| 79 | cairo to be built after libX11 is installed)</para>
|
---|
[bc9c1def] | 80 |
|
---|
[bb41bc7] | 81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[827336dc] | 82 | <para role="optional"><xref linkend="gtk-doc"/>,
|
---|
[3af39b1] | 83 | <ulink url="http://www.directfb.org/">DirectFB</ulink>,
|
---|
[827336dc] | 84 | <ulink url="http://code.google.com/p/skia/">Skia</ulink> and
|
---|
[3af39b1] | 85 | <ulink url="http://www.valgrind.org">Valgrind</ulink></para>
|
---|
[bb41bc7] | 86 |
|
---|
[6e08fa52] | 87 | <bridgehead renderas="sect4">Optional (to provide extended test suite
|
---|
| 88 | coverage)</bridgehead>
|
---|
[827336dc] | 89 | <para role="optional"><xref linkend="gs"/> (to test the postscript
|
---|
| 90 | backend), <xref linkend="gtk2"/> (for testing the PDF backend),
|
---|
| 91 | <xref linkend="poppler"/> (for testing the PDF backend),
|
---|
| 92 | <ulink url="http://libspectre.freedesktop.org">libspectre</ulink> (to test
|
---|
| 93 | the PDF backend) and <xref linkend="librsvg"/> (for testing the SVG
|
---|
| 94 | backend)</para>
|
---|
[6e08fa52] | 95 |
|
---|
| 96 | <para>Note that the GTK, Poppler and librsvg packages are circular in that
|
---|
[827336dc] | 97 | using them for test suite coverage requires installing cairo first, then
|
---|
| 98 | installing the desired package(s), then installing cairo again. As the test
|
---|
| 99 | suite seems to be somewhat broken it doesn't seem worth the effort.</para>
|
---|
[6e08fa52] | 100 |
|
---|
[c5c2654] | 101 | <para condition="html" role="usernotes">User Notes:
|
---|
| 102 | <ulink url="&blfs-wiki;/cairo"/></para>
|
---|
| 103 |
|
---|
[bb41bc7] | 104 | </sect2>
|
---|
| 105 |
|
---|
| 106 | <sect2 role="installation">
|
---|
| 107 | <title>Installation of cairo</title>
|
---|
| 108 |
|
---|
[827336dc] | 109 | <para>Install <application>Cairo</application> by running the following
|
---|
[bb41bc7] | 110 | commands:</para>
|
---|
| 111 |
|
---|
[827336dc] | 112 | <screen><userinput>./configure --prefix=/usr --enable-tee --enable-gl &&
|
---|
[bb41bc7] | 113 | make</userinput></screen>
|
---|
| 114 |
|
---|
[827336dc] | 115 | <para>To test the results, issue: <command>make -k check</command>.</para>
|
---|
[8335db4] | 116 |
|
---|
[827336dc] | 117 | <para>Note that the tests take a long time to run and many of them fail for
|
---|
| 118 | unknown reasons.</para>
|
---|
[bb41bc7] | 119 |
|
---|
[827336dc] | 120 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 121 | user:</para>
|
---|
[bb41bc7] | 122 |
|
---|
| 123 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
[15a4fb4c] | 127 | <sect2 role="commands">
|
---|
| 128 | <title>Command Explanations</title>
|
---|
| 129 |
|
---|
[e05cd03f] | 130 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[56ce09e] | 131 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
| 132 |
|
---|
[827336dc] | 133 | <para><option>--enable-tee</option>: This is used by
|
---|
| 134 | <application>Firefox</application>. If you don't enable the Cairo's tee
|
---|
| 135 | surface back end you won't be able to build
|
---|
| 136 | <application>Firefox</application> with
|
---|
| 137 | <option>--enable-system-cairo</option>.</para>
|
---|
[bc9c1def] | 138 |
|
---|
[827336dc] | 139 | <para><option>--enable-gl</option>: Enable the
|
---|
| 140 | <application>Cairo</application> OpenGL back end. Remove this option if
|
---|
| 141 | you've not installed <xref linkend="mesalib"/>.</para>
|
---|
| 142 |
|
---|
| 143 | <para><option>--enable-xcb</option>: Enable
|
---|
| 144 | <application>Cairo</application>'s <xref linkend="libxcb"/> back end.</para>
|
---|
| 145 |
|
---|
| 146 | <para><option>--disable-static</option>: Prevent static libraries being
|
---|
| 147 | built and installed.</para>
|
---|
| 148 |
|
---|
| 149 | <para><option>--enable-vg</option>: Enable the
|
---|
| 150 | <application>Cairo</application>
|
---|
| 151 | <ulink url="http://en.wikipedia.org/wiki/OpenVG">OpenVG</ulink> back
|
---|
| 152 | end (requires <xref linkend="mesalib"/> installed, configured with
|
---|
| 153 | --enable-gallium-egl and --enable-openvg).</para>
|
---|
[bc9c1def] | 154 |
|
---|
[15a4fb4c] | 155 | </sect2>
|
---|
| 156 |
|
---|
[bb41bc7] | 157 | <sect2 role="content">
|
---|
| 158 | <title>Contents</title>
|
---|
| 159 |
|
---|
| 160 | <segmentedlist>
|
---|
| 161 | <segtitle>Installed Programs</segtitle>
|
---|
[3af39b1] | 162 | <segtitle>Installed Library</segtitle>
|
---|
[bb41bc7] | 163 | <segtitle>Installed Directories</segtitle>
|
---|
| 164 |
|
---|
| 165 | <seglistitem>
|
---|
[827336dc] | 166 | <seg>cairo-trace</seg>
|
---|
| 167 | <seg>libcairo.{so,a}, libcairo-gobject.{so,a} and
|
---|
| 168 | libcairo-script-interpreter.{so,a}</seg>
|
---|
| 169 | <seg>/usr/include/cairo, usr/lib/cairo and
|
---|
| 170 | /usr/share/gtk-doc/html/cairo</seg>
|
---|
[bb41bc7] | 171 | </seglistitem>
|
---|
| 172 | </segmentedlist>
|
---|
| 173 |
|
---|
| 174 | <variablelist>
|
---|
| 175 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 176 | <?dbfo list-presentation="list"?>
|
---|
| 177 | <?dbhtml list-presentation="table"?>
|
---|
| 178 |
|
---|
[827336dc] | 179 | <varlistentry id="cairo-trace">
|
---|
| 180 | <term><command>cairo-trace</command></term>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>generates a log of all calls made by an application to
|
---|
| 183 | <application>Cairo</application>.</para>
|
---|
| 184 | <indexterm zone="cairo cairo-trace">
|
---|
| 185 | <primary sortas="b-cairo-trace">cairo-trace</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 |
|
---|
[bb41bc7] | 190 | <varlistentry id="libcairo">
|
---|
[c5c2654] | 191 | <term><filename class='libraryfile'>libcairo.{so,a}</filename></term>
|
---|
[bb41bc7] | 192 | <listitem>
|
---|
| 193 | <para>contains the 2D graphics functions required for rendering to
|
---|
| 194 | the various output targets.</para>
|
---|
| 195 | <indexterm zone="cairo libcairo">
|
---|
[c5c2654] | 196 | <primary sortas="c-libcairo">libcairo.{so,a}</primary>
|
---|
[bb41bc7] | 197 | </indexterm>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
| 200 |
|
---|
[827336dc] | 201 | <varlistentry id="libcairo-gobject">
|
---|
| 202 | <term><filename class='libraryfile'>libcairo-gobject.{so,a}</filename></term>
|
---|
| 203 | <listitem>
|
---|
| 204 | <para>contains functions that integrate
|
---|
| 205 | <application>Cairo</application> with <xref linkend="glib2"/>'s
|
---|
| 206 | GObject type system.</para>
|
---|
| 207 | <indexterm zone="cairo libcairo-gobject">
|
---|
| 208 | <primary sortas="c-libcairo-gobject">libcairo-gobject.{so,a}</primary>
|
---|
| 209 | </indexterm>
|
---|
| 210 | </listitem>
|
---|
| 211 | </varlistentry>
|
---|
| 212 |
|
---|
| 213 | <varlistentry id="libcairo-script-interpreter">
|
---|
| 214 | <term><filename class='libraryfile'>libcairo-script-interpreter.{so,a}</filename></term>
|
---|
| 215 | <listitem>
|
---|
| 216 | <para>contains the script interpreter functions for executing and
|
---|
| 217 | manipulating <application>Cairo</application> execution traces.</para>
|
---|
| 218 | <indexterm zone="cairo libcairo-script-interpreter">
|
---|
| 219 | <primary sortas="c-libcairo-script-interpreter">libcairo-script-interpreter.{so,a}</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
[bb41bc7] | 224 | </variablelist>
|
---|
| 225 |
|
---|
| 226 | </sect2>
|
---|
| 227 |
|
---|
| 228 | </sect1>
|
---|