source: x/lib/cairo.xml@ 75d341a1

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 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/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 75d341a1 was 75d341a1, checked in by Krejzi <krejzi@…>, 12 years ago

Fix librsvg instructions (again), I don't like putting dots at dependencies block, sorry. Recheck Cairo deps, same as for gdk-pixbuf - without image loaders library is useless and explicitly disabling those could lead someone straight to hell.

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

  • Property mode set to 100644
File size: 10.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY cairo-download-http
8 "http://cairographics.org/releases/cairo-&cairo-version;.tar.xz">
9 <!ENTITY cairo-download-ftp " ">
10 <!ENTITY cairo-md5sum "87649eb75789739d517c743e94879e51">
11 <!ENTITY cairo-size "41 MB">
12 <!ENTITY cairo-buildsize "178 MB">
13 <!ENTITY cairo-time "1.1 SBU">
14]>
15
16<sect1 id="cairo" xreflabel="cairo-&cairo-version;">
17 <?dbhtml filename="cairo.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>cairo-&cairo-version;</title>
25
26 <indexterm zone="cairo">
27 <primary sortas="a-cairo">cairo</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Cairo</title>
32
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
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
43 <application>Cairo</application> include stroking and filling cubic
44 B&eacute;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>
50
51 &lfs71_checked;
52
53 <bridgehead renderas="sect3">Package Information</bridgehead>
54 <itemizedlist spacing="compact">
55 <listitem>
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>
64 </listitem>
65 <listitem>
66 <para>
67 Download MD5 sum: &cairo-md5sum;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Download size: &cairo-size;
73 </para>
74 </listitem>
75 <listitem>
76 <para>
77 Estimated disk space required: &cairo-buildsize;
78 </para>
79 </listitem>
80 <listitem>
81 <para>
82 Estimated build time: &cairo-time;
83 </para>
84 </listitem>
85 </itemizedlist>
86
87 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
88 <itemizedlist spacing="compact">
89 <listitem>
90 <para>
91 Required patch (if you intend to compile any Mozilla products):
92 <ulink url="&patch-root;/cairo-&cairo-version;-expose-snapshot-1.patch"/>
93 </para>
94 </listitem>
95 </itemizedlist>
96
97 <bridgehead renderas="sect3">Cairo Dependencies</bridgehead>
98
99 <bridgehead renderas="sect4">Required</bridgehead>
100 <para role="required">
101 <xref linkend="libpng"/>, <!-- I would not dare not to use this one -->
102 <xref linkend="pixman"/> and
103 <xref linkend="pkgconfig"/>.
104 </para>
105
106 <bridgehead renderas="sect4">Recommended (Required if building GTK+)</bridgehead>
107 <para role="recommended">
108 <xref linkend="fontconfig"/> and <!--
109 <xref linkend="libpng"/> (if you want to build
110 <application>Cairo</application> without <application>Libpng</application>
111 you will need to add --disable-png --disable-svg to the configure options
112 and remove --enable-tee) and -->
113 <xref linkend="xorg7-lib"/>.
114 </para>
115
116 <bridgehead renderas="sect4">Optional</bridgehead>
117 <para role="optional">
118 <xref linkend="cogl"/>,
119 <ulink url="http://www.directfb.org/">DirectFB</ulink>,
120 <xref linkend="gs"/> (for testing the postscript backend),
121 <xref linkend="gtk2"/> (for testing the PDF backend),
122 <xref linkend="gtk-doc"/>,
123 <xref linkend="libdrm"/>,
124 <xref linkend="librsvg"/> (for testing the SVG backend),
125 <ulink url="http://libspectre.freedesktop.org">libspectre</ulink> (for
126 testing the PDF backend),
127 <xref linkend="mesalib"/>,
128 <xref linkend="poppler"/> (for testing the PDF backend),
129 <xref linkend="qt4"/>,
130 <ulink url="http://code.google.com/p/skia/">Skia</ulink> and
131 <ulink url="http://www.valgrind.org">Valgrind</ulink>.
132 </para>
133
134 <note>
135 <para>
136 There is a reciprocal dependency with the
137 <application>Gtk 2</application>, <application>Librsvg</application> and
138 <application>Poppler</application> packages. As the test suite is
139 currently unreliable, it is best to simply skip it at this time.
140 </para>
141 </note>
142
143 <para condition="html" role="usernotes">
144 User Notes: <ulink url="&blfs-wiki;/cairo"/>
145 </para>
146 </sect2>
147
148 <sect2 role="installation">
149 <title>Installation of Cairo</title>
150
151 <para>
152 Install <application>Cairo</application> by running the following
153 commands:
154 </para>
155
156<screen><userinput>sed -i 's#check-plt.sh ##' src/Makefile.in &amp;&amp;
157patch -p1 &lt; ../cairo-&cairo-version;-expose-snapshot-1.patch &amp;&amp;
158./configure --prefix=/usr --disable-static --enable-tee --enable-xcb &amp;&amp;
159make</userinput></screen>
160
161 <para>
162 Note that the tests take a long time to run, many of them fail for unknown
163 reasons and it has been known to cause a kernel panic. <!-- I suspect that
164 the panic was due to a bug in the xf86-video-ati driver but I can't be
165 sure as the system locked up hard. cairo-1.12.0 has exposed bugs in other
166 parts of Xorg https://bugs.freedesktop.org/show_bug.cgi?id=47266 Andy
167 2012-04-22 --> If you want to run the tests issue:
168 <command>make -k check</command>.
169 </para>
170
171 <para>
172 Now, as the <systemitem class="username">root</systemitem> user:
173 </para>
174
175<screen role="root"><userinput>make install</userinput></screen>
176 </sect2>
177
178 <sect2 role="commands">
179 <title>Command Explanations</title>
180
181 <para>
182 <command>sed -i 's#check-plt.sh ##' src/Makefile.in</command>: This sed
183 disables running a test which is known to fail with the expose-snapshot
184 patch.
185 </para>
186
187 <para>
188 <command>patch -p1 &lt;
189 ../cairo-&cairo-version;-expose-snapshot-1.patch</command>: This patch
190 exposes some private functions that <application>Firefox</application>
191 relies on. Applying this patch allows <application>Firefox</application>
192 to use the system installed <application>Cairo</application>.
193 </para>
194
195 <para>
196 <option>--enable-tee</option>: This is used by
197 <application>Firefox</application>. If you don't enable the Cairo's tee
198 surface backend you won't be able to build
199 <application>Firefox</application> with
200 <option>--enable-system-cairo</option>.
201 </para>
202
203 <para>
204 <option>--enable-gl</option>: Enable <application>Cairo</application>'s
205 OpenGL backend.
206 </para>
207
208 <para>
209 <option>--enable-xcb</option>: Enable <application>Cairo</application>'s
210 libxcb backend.
211 </para>
212
213 <para>
214 <option>--enable-vg</option>: Enable the <application>Cairo</application>
215 <ulink url="http://en.wikipedia.org/wiki/OpenVG">OpenVG</ulink> backend
216 (requires <xref linkend="mesalib"/> installed, configured with
217 --enable-gallium-egl and --enable-openvg).
218 </para>
219
220 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
221 href="../../xincludes/static-libraries.xml"/>
222
223 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
224 href="../../xincludes/gtk-doc-rebuild.xml"/>
225 </sect2>
226
227 <sect2 role="content">
228 <title>Contents</title>
229
230 <segmentedlist>
231 <segtitle>Installed Programs</segtitle>
232 <segtitle>Installed Libraries</segtitle>
233 <segtitle>Installed Directories</segtitle>
234
235 <seglistitem>
236 <seg>
237 cairo-sphinx and cairo-trace
238 </seg>
239 <seg>
240 libcairo.so, libcairo-gobject.so and
241 libcairo-script-interpreter.so
242 </seg>
243 <seg>
244 /usr/include/cairo, /usr/lib/cairo and
245 /usr/share/gtk-doc/html/cairo
246 </seg>
247 </seglistitem>
248 </segmentedlist>
249
250 <variablelist>
251 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
252 <?dbfo list-presentation="list"?>
253 <?dbhtml list-presentation="table"?>
254
255 <varlistentry id="cairo-trace">
256 <term><command>cairo-trace</command></term>
257 <listitem>
258 <para>
259 generates a log of all calls made by an application to
260 <application>Cairo</application>.
261 </para>
262 <indexterm zone="cairo cairo-trace">
263 <primary sortas="b-cairo-trace">cairo-trace</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="libcairo">
269 <term><filename class='libraryfile'>libcairo.so</filename></term>
270 <listitem>
271 <para>
272 contains the 2D graphics functions required for rendering to the
273 various output targets.
274 </para>
275 <indexterm zone="cairo libcairo">
276 <primary sortas="c-libcairo">libcairo.so</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="libcairo-gobject">
282 <term><filename class='libraryfile'>libcairo-gobject.so</filename></term>
283 <listitem>
284 <para>
285 contains functions that integrate
286 <application>Cairo</application> with <xref linkend="glib2"/>'s
287 GObject type system.
288 </para>
289 <indexterm zone="cairo libcairo-gobject">
290 <primary sortas="c-libcairo-gobject">libcairo-gobject.so</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="libcairo-script-interpreter">
296 <term><filename class='libraryfile'>libcairo-script-interpreter.so</filename></term>
297 <listitem>
298 <para>
299 contains the script interpreter functions for executing and
300 manipulating <application>Cairo</application> execution traces.
301 </para>
302 <indexterm zone="cairo libcairo-script-interpreter">
303 <primary sortas="c-libcairo-script-interpreter">libcairo-script-interpreter.so</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307 </variablelist>
308 </sect2>
309</sect1>
Note: See TracBrowser for help on using the repository browser.