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 "http://cairographics.org/releases/cairo-&cairo-version;.tar.gz">
|
---|
8 | <!ENTITY cairo-download-ftp " ">
|
---|
9 | <!ENTITY cairo-md5sum "a5067e355e78294db2485aa97afd1115">
|
---|
10 | <!ENTITY cairo-size "6.7 MB">
|
---|
11 | <!ENTITY cairo-buildsize "27 MB (without static libs, additional 270 MB to run the test suite)">
|
---|
12 | <!ENTITY cairo-time "0.3 SBU (additional 2.9 SBU to run the test suite)">
|
---|
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 |
|
---|
32 | <para><application>cairo</application> is a 2D graphics library with
|
---|
33 | support for multiple output devices. Currently supported output targets
|
---|
34 | include the <application>X</application> Window System, win32, image
|
---|
35 | buffers, PostScript, PDF and SVG. Experimental backends include OpenGL
|
---|
36 | (through glitz), Quartz and XCB file output. cairo is designed to produce
|
---|
37 | consistent output on all output media while taking advantage of display
|
---|
38 | hardware acceleration when available (e.g., through the X Render
|
---|
39 | Extension). The <application>cairo</application> API provides operations
|
---|
40 | similar to the 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
|
---|
43 | antialiased text rendering. All drawing operations can be transformed by
|
---|
44 | any affine transformation (scale, rotation, shear, etc.).</para>
|
---|
45 |
|
---|
46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
47 | <itemizedlist spacing="compact">
|
---|
48 | <listitem>
|
---|
49 | <para>Download (HTTP): <ulink url="&cairo-download-http;"/></para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Download (FTP): <ulink url="&cairo-download-ftp;"/></para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Download MD5 sum: &cairo-md5sum;</para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>Download size: &cairo-size;</para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>Estimated disk space required: &cairo-buildsize;</para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>Estimated build time: &cairo-time;</para>
|
---|
65 | </listitem>
|
---|
66 | </itemizedlist>
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect3">cairo Dependencies</bridgehead>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
71 | <para role="required"><xref linkend="x-window-system"/> and
|
---|
72 | <xref linkend="pkgconfig"/></para>
|
---|
73 |
|
---|
74 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
75 | <para role="optional"><xref linkend="xcb-util"/></para>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
78 | <para role="optional"><ulink
|
---|
79 | url="http://www.freedesktop.org/Software/glitz">glitz</ulink>,
|
---|
80 | <ulink url="http://www.directfb.org/">DirectFB</ulink>, and
|
---|
81 | <xref linkend="gtk-doc"/></para>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect4">Optional (to provide extended test suite
|
---|
84 | coverage)</bridgehead>
|
---|
85 | <para role="optional"><xref linkend="gtk2"/> (for testing the PDF backend),
|
---|
86 | <xref linkend="poppler"/> (for testing the PDF backend),
|
---|
87 | <xref linkend="librsvg"/> (for testing the SVG backend).
|
---|
88 | <!-- [ comment this pending clarification - not presently required] , and
|
---|
89 | <ulink url="http://ltp.sourceforge.net/">LTP</ulink>--></para>
|
---|
90 |
|
---|
91 | <para>Note that the GTK, Poppler and librsvg packages are circular in that
|
---|
92 | using them for test suite coverage requires installing cairo first,
|
---|
93 | then installing the desired package(s), then installing cairo again.</para>
|
---|
94 |
|
---|
95 | <para condition="html" role="usernotes">User Notes:
|
---|
96 | <ulink url="&blfs-wiki;/cairo"/></para>
|
---|
97 |
|
---|
98 | </sect2>
|
---|
99 |
|
---|
100 | <sect2 role="installation">
|
---|
101 | <title>Installation of cairo</title>
|
---|
102 |
|
---|
103 | <para>Install <application>cairo</application> by running the following
|
---|
104 | commands:</para>
|
---|
105 |
|
---|
106 | <screen><userinput>./configure --prefix=/usr --enable-xcb=yes &&
|
---|
107 | make</userinput></screen>
|
---|
108 |
|
---|
109 | <para>To test the results, issue: <command>make check</command>. Note that
|
---|
110 | as many as 24 of the tests are known to fail for unknown reasons.
|
---|
111 | If you do not have a <command>gs</command> binary in your path, many
|
---|
112 | <!-- used to be (87 of $total), needs to be updated by someone who can
|
---|
113 | get them to run through without hanging -->
|
---|
114 | of the 205 tests will fail. Also, to enhance test
|
---|
115 | coverage, the tests should be run with an available X Window screen (e.g.
|
---|
116 | from a local xterm or equivalent window).</para>
|
---|
117 |
|
---|
118 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
119 |
|
---|
120 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
121 |
|
---|
122 | </sect2>
|
---|
123 |
|
---|
124 | <sect2 role="commands">
|
---|
125 | <title>Command Explanations</title>
|
---|
126 |
|
---|
127 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
128 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
129 |
|
---|
130 | <para><parameter>--enable-xcb=yes</parameter>: Enable the xcb
|
---|
131 | back end. Omit this if you did not install xcb-util and pixman.</para>
|
---|
132 |
|
---|
133 | <para><parameter>--disable-static</parameter>: Prevent static libraries
|
---|
134 | being built and installed.</para>
|
---|
135 |
|
---|
136 | </sect2>
|
---|
137 |
|
---|
138 | <sect2 role="content">
|
---|
139 | <title>Contents</title>
|
---|
140 |
|
---|
141 | <segmentedlist>
|
---|
142 | <segtitle>Installed Programs</segtitle>
|
---|
143 | <segtitle>Installed Libraries</segtitle>
|
---|
144 | <segtitle>Installed Directories</segtitle>
|
---|
145 |
|
---|
146 | <seglistitem>
|
---|
147 | <seg>None</seg>
|
---|
148 | <seg>libcairo.{so,a}</seg>
|
---|
149 | <seg>/usr/include/cairo and /usr/share/gtk-doc/html/cairo</seg>
|
---|
150 | </seglistitem>
|
---|
151 | </segmentedlist>
|
---|
152 |
|
---|
153 | <variablelist>
|
---|
154 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
155 | <?dbfo list-presentation="list"?>
|
---|
156 | <?dbhtml list-presentation="table"?>
|
---|
157 |
|
---|
158 | <varlistentry id="libcairo">
|
---|
159 | <term><filename class='libraryfile'>libcairo.{so,a}</filename></term>
|
---|
160 | <listitem>
|
---|
161 | <para>contains the 2D graphics functions required for rendering to
|
---|
162 | the various output targets.</para>
|
---|
163 | <indexterm zone="cairo libcairo">
|
---|
164 | <primary sortas="c-libcairo">libcairo.{so,a}</primary>
|
---|
165 | </indexterm>
|
---|
166 | </listitem>
|
---|
167 | </varlistentry>
|
---|
168 |
|
---|
169 | </variablelist>
|
---|
170 |
|
---|
171 | </sect2>
|
---|
172 |
|
---|
173 | </sect1>
|
---|