source: x/lib/cairo.xml@ 439e942e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 439e942e was 97ccf511, checked in by Krejzi <krejzi@…>, 13 years ago

cairo 1.12

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9754 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.0 KB
RevLine 
[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">
[97ccf511]8 <!ENTITY cairo-download-ftp " ">
9 <!ENTITY cairo-md5sum "e6c85575ba7094f88b637bdfd835a751">
10 <!ENTITY cairo-size "61 MB">
11 <!ENTITY cairo-buildsize "170 MB (up to an additional 454 MB to run the test suite)">
12 <!ENTITY cairo-time "0.8 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&eacute;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
[97ccf511]73 <!-- Cairo is here only because GTK+ and friends, so I'll make Xorg Libraries
74 a dependency here -->
[bb41bc7]75 <bridgehead renderas="sect4">Required</bridgehead>
[97ccf511]76 <para role="required"><xref linkend="fontconfig"/>, <xref linkend="libpng"/>,
77 <xref linkend="pixman"/>, <xref linkend="pkgconfig"/> and
78 <xref linkend="xorg7-lib"/></para>
[bc9c1def]79
[97ccf511]80 <!-- I've never seen any package that needs Cairo GL backend -->
[bb41bc7]81 <bridgehead renderas="sect4">Optional</bridgehead>
[97ccf511]82 <para role="optional"><xref linkend="cogl"/>,
[3af39b1]83 <ulink url="http://www.directfb.org/">DirectFB</ulink>,
[97ccf511]84 <xref linkend="libdrm"/>,
85 <xref linkend="gtk-doc"/>,
86 <xref linkend="mesalib"/>,
87 <xref linkend="qt4"/>,
[827336dc]88 <ulink url="http://code.google.com/p/skia/">Skia</ulink> and
[3af39b1]89 <ulink url="http://www.valgrind.org">Valgrind</ulink></para>
[bb41bc7]90
[6e08fa52]91 <bridgehead renderas="sect4">Optional (to provide extended test suite
92 coverage)</bridgehead>
[827336dc]93 <para role="optional"><xref linkend="gs"/> (to test the postscript
94 backend), <xref linkend="gtk2"/> (for testing the PDF backend),
95 <xref linkend="poppler"/> (for testing the PDF backend),
96 <ulink url="http://libspectre.freedesktop.org">libspectre</ulink> (to test
97 the PDF backend) and <xref linkend="librsvg"/> (for testing the SVG
98 backend)</para>
[6e08fa52]99
[7e3d293]100 <note><para>There is a reciprocal dependency with cairo and libdrm. Best
101 practice is to install cairo without the OpenGL backend, and return to
102 re-install cairo after the full Xorg installation has been completed. Also
103 note that the GTK, Poppler and librsvg packages are also reciprocal. As the
104 test suite is currently unreliable, it is best to simply skip it at this
105 time.</para></note>
[6e08fa52]106
[c5c2654]107 <para condition="html" role="usernotes">User Notes:
108 <ulink url="&blfs-wiki;/cairo"/></para>
109
[bb41bc7]110 </sect2>
111
112 <sect2 role="installation">
113 <title>Installation of cairo</title>
114
[827336dc]115 <para>Install <application>Cairo</application> by running the following
[bb41bc7]116 commands:</para>
117
[7e3d293]118<screen><userinput>./configure --prefix=/usr \
[97ccf511]119 --enable-tee --enable-xcb &amp;&amp;
[bb41bc7]120make</userinput></screen>
121
[827336dc]122 <para>To test the results, issue: <command>make -k check</command>.</para>
[8335db4]123
[827336dc]124 <para>Note that the tests take a long time to run and many of them fail for
125 unknown reasons.</para>
[bb41bc7]126
[827336dc]127 <para>Now, as the <systemitem class="username">root</systemitem>
128 user:</para>
[bb41bc7]129
130<screen role="root"><userinput>make install</userinput></screen>
131
132 </sect2>
133
[15a4fb4c]134 <sect2 role="commands">
135 <title>Command Explanations</title>
136
[e05cd03f]137 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[56ce09e]138 href="../../xincludes/gtk-doc-rebuild.xml"/>
139
[827336dc]140 <para><option>--enable-tee</option>: This is used by
141 <application>Firefox</application>. If you don't enable the Cairo's tee
[97ccf511]142 surface backend you won't be able to build
[827336dc]143 <application>Firefox</application> with
144 <option>--enable-system-cairo</option>.</para>
[bc9c1def]145
[97ccf511]146 <para><option>--enable-drm</option>: Enable
147 <application>Cairo</application>'s libdrm backend.</para>
[827336dc]148
[97ccf511]149 <para><option>--enable-gl</option>: Enable
150 <application>Cairo</application>'s OpenGL backend.</para>
[827336dc]151
[97ccf511]152 <para><option>--enable-xcb</option>: Enable
153 <application>Cairo</application>'s libxcb backend.
154 </para>
[827336dc]155
156 <para><option>--enable-vg</option>: Enable the
157 <application>Cairo</application>
[97ccf511]158 <ulink url="http://en.wikipedia.org/wiki/OpenVG">OpenVG</ulink> backend
159 (requires <xref linkend="mesalib"/> installed, configured with
[827336dc]160 --enable-gallium-egl and --enable-openvg).</para>
[bc9c1def]161
[97ccf511]162 <para><option>--disable-static</option>: Prevent static libraries being
163 built and installed.</para>
164
[15a4fb4c]165 </sect2>
166
[bb41bc7]167 <sect2 role="content">
168 <title>Contents</title>
169
170 <segmentedlist>
171 <segtitle>Installed Programs</segtitle>
[3af39b1]172 <segtitle>Installed Library</segtitle>
[bb41bc7]173 <segtitle>Installed Directories</segtitle>
174
175 <seglistitem>
[97ccf511]176 <seg>cairo-sphinx and cairo-trace</seg>
[827336dc]177 <seg>libcairo.{so,a}, libcairo-gobject.{so,a} and
178 libcairo-script-interpreter.{so,a}</seg>
[97ccf511]179 <seg>/usr/include/cairo, /usr/lib/cairo and
[827336dc]180 /usr/share/gtk-doc/html/cairo</seg>
[bb41bc7]181 </seglistitem>
182 </segmentedlist>
183
184 <variablelist>
185 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
186 <?dbfo list-presentation="list"?>
187 <?dbhtml list-presentation="table"?>
188
[827336dc]189 <varlistentry id="cairo-trace">
190 <term><command>cairo-trace</command></term>
191 <listitem>
192 <para>generates a log of all calls made by an application to
193 <application>Cairo</application>.</para>
194 <indexterm zone="cairo cairo-trace">
195 <primary sortas="b-cairo-trace">cairo-trace</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
[bb41bc7]200 <varlistentry id="libcairo">
[c5c2654]201 <term><filename class='libraryfile'>libcairo.{so,a}</filename></term>
[bb41bc7]202 <listitem>
203 <para>contains the 2D graphics functions required for rendering to
204 the various output targets.</para>
205 <indexterm zone="cairo libcairo">
[c5c2654]206 <primary sortas="c-libcairo">libcairo.{so,a}</primary>
[bb41bc7]207 </indexterm>
208 </listitem>
209 </varlistentry>
210
[827336dc]211 <varlistentry id="libcairo-gobject">
212 <term><filename class='libraryfile'>libcairo-gobject.{so,a}</filename></term>
213 <listitem>
214 <para>contains functions that integrate
215 <application>Cairo</application> with <xref linkend="glib2"/>'s
216 GObject type system.</para>
217 <indexterm zone="cairo libcairo-gobject">
218 <primary sortas="c-libcairo-gobject">libcairo-gobject.{so,a}</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
223 <varlistentry id="libcairo-script-interpreter">
224 <term><filename class='libraryfile'>libcairo-script-interpreter.{so,a}</filename></term>
225 <listitem>
226 <para>contains the script interpreter functions for executing and
227 manipulating <application>Cairo</application> execution traces.</para>
228 <indexterm zone="cairo libcairo-script-interpreter">
229 <primary sortas="c-libcairo-script-interpreter">libcairo-script-interpreter.{so,a}</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
[bb41bc7]234 </variablelist>
235
236 </sect2>
237
238</sect1>
Note: See TracBrowser for help on using the repository browser.