[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 |
|
---|
[a2ce753] | 7 | <!ENTITY cairo-download-http "https://www.cairographics.org/snapshots/cairo-&cairo-version;.tar.xz">
|
---|
| 8 | <!--<!ENTITY cairo-download-http "&sources-anduin-http;/cairo/cairo-&cairo-version;.tar.xz">-->
|
---|
[97ccf511] | 9 | <!ENTITY cairo-download-ftp " ">
|
---|
[a2ce753] | 10 | <!ENTITY cairo-md5sum "bf9d0d324ecbd350d0e9308125fa4ce0">
|
---|
[310a001] | 11 | <!ENTITY cairo-size "40 MB">
|
---|
[a2ce753] | 12 | <!ENTITY cairo-buildsize "154 MB">
|
---|
| 13 | <!ENTITY cairo-time "0.8 SBU">
|
---|
[bb41bc7] | 14 | ]>
|
---|
| 15 |
|
---|
[a2912ff] | 16 | <sect1 id="cairo" xreflabel="Cairo-&cairo-version;">
|
---|
[bb41bc7] | 17 | <?dbhtml filename="cairo.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
[a2912ff] | 24 | <title>Cairo-&cairo-version;</title>
|
---|
[bb41bc7] | 25 |
|
---|
| 26 | <indexterm zone="cairo">
|
---|
[a2912ff] | 27 | <primary sortas="a-Cairo">Cairo</primary>
|
---|
[bb41bc7] | 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
[4db1ba6] | 31 | <title>Introduction to Cairo</title>
|
---|
[bb41bc7] | 32 |
|
---|
[521cea0] | 33 | <para>
|
---|
| 34 | <application>Cairo</application> is a 2D graphics library with support for
|
---|
| 35 | multiple output devices. Currently supported output targets include the
|
---|
| 36 | <application>X</application> Window System, win32, image buffers,
|
---|
| 37 | PostScript, PDF and SVG. Experimental backends include OpenGL, Quartz and
|
---|
[68d01360] | 38 | XCB file output. <application>Cairo</application> is designed to produce
|
---|
| 39 | consistent output on all output media while taking advantage of display
|
---|
| 40 | hardware acceleration when available (e.g., through the X Render
|
---|
| 41 | Extension). The <application>Cairo</application> API provides operations
|
---|
| 42 | similar to the drawing operators of PostScript and PDF. Operations in
|
---|
[521cea0] | 43 | <application>Cairo</application> include stroking and filling cubic
|
---|
| 44 | Bézier splines, transforming and compositing translucent images,
|
---|
| 45 | and antialiased text rendering. All drawing operations can be transformed
|
---|
| 46 | by any
|
---|
| 47 | <ulink url="http://en.wikipedia.org/wiki/Affine_transformation">affine
|
---|
| 48 | transformation</ulink> (scale, rotation, shear, etc.).
|
---|
| 49 | </para>
|
---|
[bb41bc7] | 50 |
|
---|
[3df8ea47] | 51 | &lfs101_checked;
|
---|
[3af39b1] | 52 |
|
---|
[bb41bc7] | 53 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 54 | <itemizedlist spacing="compact">
|
---|
| 55 | <listitem>
|
---|
[521cea0] | 56 | <para>
|
---|
| 57 | Download (HTTP): <ulink url="&cairo-download-http;"/>
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Download (FTP): <ulink url="&cairo-download-ftp;"/>
|
---|
| 63 | </para>
|
---|
[bb41bc7] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[521cea0] | 66 | <para>
|
---|
| 67 | Download MD5 sum: &cairo-md5sum;
|
---|
| 68 | </para>
|
---|
[bb41bc7] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[521cea0] | 71 | <para>
|
---|
| 72 | Download size: &cairo-size;
|
---|
| 73 | </para>
|
---|
[bb41bc7] | 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
[521cea0] | 76 | <para>
|
---|
| 77 | Estimated disk space required: &cairo-buildsize;
|
---|
| 78 | </para>
|
---|
[bb41bc7] | 79 | </listitem>
|
---|
| 80 | <listitem>
|
---|
[521cea0] | 81 | <para>
|
---|
| 82 | Estimated build time: &cairo-time;
|
---|
| 83 | </para>
|
---|
[bb41bc7] | 84 | </listitem>
|
---|
[521cea0] | 85 | </itemizedlist>
|
---|
| 86 |
|
---|
[4db1ba6] | 87 | <bridgehead renderas="sect3">Cairo Dependencies</bridgehead>
|
---|
[bb41bc7] | 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[b8a081c] | 90 | <para role="required">
|
---|
[1cfd61d] | 91 | <xref linkend="libpng"/> and
|
---|
[b0ae5b7] | 92 | <xref linkend="pixman"/>
|
---|
[4db1ba6] | 93 | </para>
|
---|
| 94 |
|
---|
[f575476] | 95 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[4db1ba6] | 96 | <para role="recommended">
|
---|
[1cfd61d] | 97 | <xref linkend="fontconfig"/>,
|
---|
[3df8ea47] | 98 | <xref linkend="glib2"/> (required for most GUIs), and
|
---|
[a2912ff] | 99 | <xref linkend="xorg7-lib"/>
|
---|
[b8a081c] | 100 | </para>
|
---|
[bc9c1def] | 101 |
|
---|
[bb41bc7] | 102 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b8a081c] | 103 | <para role="optional">
|
---|
| 104 | <xref linkend="cogl"/>,
|
---|
[11d14a27] | 105 | <xref linkend="gs"/>,
|
---|
| 106 | <xref linkend="gtk3"/> and <xref linkend="gtk2"/>,
|
---|
[b8a081c] | 107 | <xref linkend="gtk-doc"/>,
|
---|
[521cea0] | 108 | <xref linkend="libdrm"/>,
|
---|
[11d14a27] | 109 | <xref linkend="librsvg"/>,
|
---|
[f68e46f] | 110 | <xref linkend="libxml2"/>,
|
---|
[652b18b] | 111 | <xref linkend="lzo"/>,
|
---|
[7a395d1] | 112 | <xref linkend="mesa"/>,
|
---|
[11d14a27] | 113 | <xref linkend="poppler"/>,
|
---|
[f68e46f] | 114 | <xref linkend="qt5"/>,
|
---|
[ae629f3] | 115 | <xref linkend="valgrind"/>,
|
---|
[8763a1da] | 116 | <ulink url="http://pkgs.fedoraproject.org/repo/pkgs/directfb/">DirectFB</ulink>,
|
---|
[11d14a27] | 117 | <ulink url="https://github.com/rillian/jbig2dec/">jbig2dec</ulink>,
|
---|
| 118 | <ulink url="https://www.freedesktop.org/wiki/Software/libspectre/">libspectre</ulink>,
|
---|
| 119 | <ulink url="https://skia.org/">Skia</ulink>, and
|
---|
[a5592158] | 120 | <ulink url="http://download.qt.io/archive/qt/4.8/">Qt4</ulink>.
|
---|
[b8a081c] | 121 | </para>
|
---|
[6e08fa52] | 122 |
|
---|
[baac59c] | 123 | <note>
|
---|
| 124 | <para>
|
---|
| 125 | There is a circular dependency between cairo and harfbuzz.
|
---|
| 126 | If cairo is built before harfbuzz, it is necessary to rebuild cairo
|
---|
| 127 | after harfbuzz in order to build pango.
|
---|
| 128 | </para>
|
---|
| 129 | </note>
|
---|
[e641675] | 130 |
|
---|
[521cea0] | 131 | <para condition="html" role="usernotes">
|
---|
| 132 | User Notes: <ulink url="&blfs-wiki;/cairo"/>
|
---|
| 133 | </para>
|
---|
[bb41bc7] | 134 | </sect2>
|
---|
| 135 |
|
---|
| 136 | <sect2 role="installation">
|
---|
[4db1ba6] | 137 | <title>Installation of Cairo</title>
|
---|
[bb41bc7] | 138 |
|
---|
[521cea0] | 139 | <para>
|
---|
| 140 | Install <application>Cairo</application> by running the following
|
---|
| 141 | commands:
|
---|
| 142 | </para>
|
---|
[bb41bc7] | 143 |
|
---|
[a2ce753] | 144 | <screen><userinput>./configure --prefix=/usr \
|
---|
[9ad08f8] | 145 | --disable-static \
|
---|
| 146 | --enable-tee &&
|
---|
[bb41bc7] | 147 | make</userinput></screen>
|
---|
| 148 |
|
---|
[f575476] | 149 | <para>
|
---|
| 150 | This package does not have a working testsuite.
|
---|
[a2ce753] | 151 | <!-- The test suite can be run with 'make check', but 488 tests fail and
|
---|
| 152 | 59 tests pass. This seems to be due to minute changes in the expected
|
---|
| 153 | output, similar to librsvg's tests. Since it's a huge chunk of the tests,
|
---|
| 154 | let's keep it as "broken" for now.-->
|
---|
[521cea0] | 155 | </para>
|
---|
[bb41bc7] | 156 |
|
---|
[521cea0] | 157 | <para>
|
---|
| 158 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 159 | </para>
|
---|
[bb41bc7] | 160 |
|
---|
| 161 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 162 | </sect2>
|
---|
| 163 |
|
---|
[15a4fb4c] | 164 | <sect2 role="commands">
|
---|
| 165 | <title>Command Explanations</title>
|
---|
| 166 |
|
---|
[a2ce753] | 167 | <!-- Not needed with 1.17.4
|
---|
[e24dbc2] | 168 | <para>
|
---|
[1ea3b96] | 169 | <parameter>autoreconf -fv</parameter>: This prevents
|
---|
[e24dbc2] | 170 | <command>configure</command> ending in error with the current version
|
---|
| 171 | of <application>automake</application> because the AM_INIT_AUTOMAKE
|
---|
| 172 | definitions came from a previous version.
|
---|
| 173 | </para>
|
---|
[a2ce753] | 174 | -->
|
---|
[e24dbc2] | 175 |
|
---|
[7251b1d] | 176 | <para>
|
---|
[11d14a27] | 177 | <parameter>--enable-tee</parameter>: This switch enables the
|
---|
| 178 | experimental tee surface backend which is required if using
|
---|
| 179 | system-installed <application>Cairo</application> with Mozilla applications.
|
---|
[7251b1d] | 180 | </para>
|
---|
| 181 |
|
---|
[a98acfe7] | 182 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 183 | href="../../xincludes/static-libraries.xml"/>
|
---|
[827336dc] | 184 |
|
---|
[74520e8] | 185 | <para>
|
---|
[11d14a27] | 186 | <option>--enable-xlib-xcb</option>: This switch enables several
|
---|
[5ec23d4] | 187 | experimental Xlib/XCB functions used by some window managers.
|
---|
[74520e8] | 188 | </para>
|
---|
| 189 |
|
---|
[521cea0] | 190 | <para>
|
---|
[f575476] | 191 | <option>--enable-gl</option>: This switch enables
|
---|
| 192 | <application>Cairo</application>'s experimental
|
---|
| 193 | <application>OpenGL</application> surface which
|
---|
| 194 | is required for <application>Wayland</application>
|
---|
[a98acfe7] | 195 | compositor and some other packages that are not
|
---|
| 196 | part of BLFS.
|
---|
[521cea0] | 197 | </para>
|
---|
[bc9c1def] | 198 |
|
---|
[f25b2c03] | 199 | <!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[a2912ff] | 200 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[f25b2c03] | 201 | NOTE: For this version, no docs are installed by default -->
|
---|
| 202 |
|
---|
| 203 | <para>
|
---|
| 204 | <option>--enable-gtk-doc</option>: Use this parameter if GTK-Doc is
|
---|
| 205 | installed and you wish to create and install the documentation.
|
---|
| 206 | </para>
|
---|
[a2912ff] | 207 |
|
---|
[15a4fb4c] | 208 | </sect2>
|
---|
| 209 |
|
---|
[bb41bc7] | 210 | <sect2 role="content">
|
---|
| 211 | <title>Contents</title>
|
---|
| 212 |
|
---|
| 213 | <segmentedlist>
|
---|
| 214 | <segtitle>Installed Programs</segtitle>
|
---|
[742b99e] | 215 | <segtitle>Installed Libraries</segtitle>
|
---|
[bb41bc7] | 216 | <segtitle>Installed Directories</segtitle>
|
---|
| 217 |
|
---|
| 218 | <seglistitem>
|
---|
[b8a081c] | 219 | <seg>
|
---|
[a2ce753] | 220 | cairo-trace
|
---|
[b8a081c] | 221 | </seg>
|
---|
| 222 | <seg>
|
---|
[4db1ba6] | 223 | libcairo.so, libcairo-gobject.so and
|
---|
| 224 | libcairo-script-interpreter.so
|
---|
[b8a081c] | 225 | </seg>
|
---|
| 226 | <seg>
|
---|
[49a38a1] | 227 | /usr/{include,lib,share/gtk-doc/html}/cairo
|
---|
[b8a081c] | 228 | </seg>
|
---|
[bb41bc7] | 229 | </seglistitem>
|
---|
| 230 | </segmentedlist>
|
---|
| 231 |
|
---|
| 232 | <variablelist>
|
---|
| 233 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 234 | <?dbfo list-presentation="list"?>
|
---|
| 235 | <?dbhtml list-presentation="table"?>
|
---|
| 236 |
|
---|
[a2ce753] | 237 | <!--
|
---|
[298fee30] | 238 | <varlistentry id="cairo-sphinx">
|
---|
| 239 | <term><command>cairo-sphinx</command></term>
|
---|
| 240 | <listitem>
|
---|
| 241 | <para>
|
---|
[4c24eb0a] | 242 | is an internal utility for regression analysis
|
---|
[298fee30] | 243 | </para>
|
---|
| 244 | <indexterm zone="cairo cairo-sphinx">
|
---|
| 245 | <primary sortas="b-cairo-sphinx">cairo-sphinx</primary>
|
---|
| 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
[a2ce753] | 249 | -->
|
---|
[298fee30] | 250 |
|
---|
[827336dc] | 251 | <varlistentry id="cairo-trace">
|
---|
| 252 | <term><command>cairo-trace</command></term>
|
---|
| 253 | <listitem>
|
---|
[521cea0] | 254 | <para>
|
---|
| 255 | generates a log of all calls made by an application to
|
---|
[4c24eb0a] | 256 | <application>Cairo</application>
|
---|
[521cea0] | 257 | </para>
|
---|
[827336dc] | 258 | <indexterm zone="cairo cairo-trace">
|
---|
| 259 | <primary sortas="b-cairo-trace">cairo-trace</primary>
|
---|
| 260 | </indexterm>
|
---|
| 261 | </listitem>
|
---|
| 262 | </varlistentry>
|
---|
| 263 |
|
---|
[bb41bc7] | 264 | <varlistentry id="libcairo">
|
---|
[f575476] | 265 | <term><filename class="libraryfile">libcairo.so</filename></term>
|
---|
[bb41bc7] | 266 | <listitem>
|
---|
[521cea0] | 267 | <para>
|
---|
| 268 | contains the 2D graphics functions required for rendering to the
|
---|
[4c24eb0a] | 269 | various output targets
|
---|
[521cea0] | 270 | </para>
|
---|
[bb41bc7] | 271 | <indexterm zone="cairo libcairo">
|
---|
[4db1ba6] | 272 | <primary sortas="c-libcairo">libcairo.so</primary>
|
---|
[bb41bc7] | 273 | </indexterm>
|
---|
| 274 | </listitem>
|
---|
| 275 | </varlistentry>
|
---|
| 276 |
|
---|
[827336dc] | 277 | <varlistentry id="libcairo-gobject">
|
---|
[7ca0e36] | 278 | <term><filename class="libraryfile">libcairo-gobject.so</filename></term>
|
---|
[827336dc] | 279 | <listitem>
|
---|
[521cea0] | 280 | <para>
|
---|
| 281 | contains functions that integrate
|
---|
[11d14a27] | 282 | <application>Cairo</application> with
|
---|
[4c24eb0a] | 283 | <application>Glib</application>'s GObject type system
|
---|
[521cea0] | 284 | </para>
|
---|
[827336dc] | 285 | <indexterm zone="cairo libcairo-gobject">
|
---|
[4db1ba6] | 286 | <primary sortas="c-libcairo-gobject">libcairo-gobject.so</primary>
|
---|
[827336dc] | 287 | </indexterm>
|
---|
| 288 | </listitem>
|
---|
| 289 | </varlistentry>
|
---|
| 290 |
|
---|
| 291 | <varlistentry id="libcairo-script-interpreter">
|
---|
[7ca0e36] | 292 | <term><filename class="libraryfile">libcairo-script-interpreter.so</filename></term>
|
---|
[827336dc] | 293 | <listitem>
|
---|
[521cea0] | 294 | <para>
|
---|
| 295 | contains the script interpreter functions for executing and
|
---|
[4c24eb0a] | 296 | manipulating <application>Cairo</application> execution traces
|
---|
[521cea0] | 297 | </para>
|
---|
[827336dc] | 298 | <indexterm zone="cairo libcairo-script-interpreter">
|
---|
[4db1ba6] | 299 | <primary sortas="c-libcairo-script-interpreter">libcairo-script-interpreter.so</primary>
|
---|
[827336dc] | 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
[a2912ff] | 303 |
|
---|
[bb41bc7] | 304 | </variablelist>
|
---|
[a2912ff] | 305 |
|
---|
[bb41bc7] | 306 | </sect2>
|
---|
[a2912ff] | 307 |
|
---|
[bb41bc7] | 308 | </sect1>
|
---|