2005-09-21 03:33:01 +08:00
|
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
|
%general-entities;
|
|
|
|
|
|
|
|
|
|
<!ENTITY cairo-download-http "http://cairographics.org/releases/cairo-&cairo-version;.tar.gz">
|
2006-03-28 00:42:24 +08:00
|
|
|
|
<!ENTITY cairo-download-ftp " ">
|
2006-10-05 20:51:08 +08:00
|
|
|
|
<!ENTITY cairo-md5sum "1222b2bfdf113e2c92f66b3389659f2d">
|
|
|
|
|
<!ENTITY cairo-size "2.8 MB">
|
|
|
|
|
<!ENTITY cairo-buildsize "56.7 MB">
|
|
|
|
|
<!ENTITY cairo-time "0.5 SBU (additional 0.9 SBU to run the test suite)">
|
2005-09-21 03:33:01 +08:00
|
|
|
|
]>
|
|
|
|
|
|
|
|
|
|
<sect1 id="cairo" xreflabel="cairo-&cairo-version;">
|
|
|
|
|
<?dbhtml filename="cairo.html"?>
|
|
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
|
<date>$Date$</date>
|
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
|
|
<title>cairo-&cairo-version;</title>
|
|
|
|
|
|
|
|
|
|
<indexterm zone="cairo">
|
|
|
|
|
<primary sortas="a-cairo">cairo</primary>
|
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
|
<title>Introduction to cairo</title>
|
|
|
|
|
|
|
|
|
|
<para><application>cairo</application> is a 2D graphics library with
|
|
|
|
|
support for multiple output devices. Currently supported output targets
|
2006-10-05 20:51:08 +08:00
|
|
|
|
include the <application>X</application> Window System, win32, image
|
|
|
|
|
buffers, PostScript, PDF and SVG. Experimental backends include OpenGL
|
|
|
|
|
(through glitz), Quartz and XCB file output. cairo is designed to produce
|
2005-09-21 03:33:01 +08:00
|
|
|
|
consistent output on all output media while taking advantage of display
|
|
|
|
|
hardware acceleration when available (e.g., through the X Render
|
|
|
|
|
Extension). The <application>cairo</application> API provides operations
|
|
|
|
|
similar to the drawing operators of PostScript and PDF. Operations in
|
|
|
|
|
<application>cairo</application> include stroking and filling cubic
|
|
|
|
|
B<>zier splines, transforming and compositing translucent images, and
|
|
|
|
|
antialiased text rendering. All drawing operations can be transformed by
|
|
|
|
|
any affine transformation (scale, rotation, shear, etc.).</para>
|
|
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Download (HTTP): <ulink url="&cairo-download-http;"/></para>
|
|
|
|
|
</listitem>
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Download (FTP): <ulink url="&cairo-download-ftp;"/></para>
|
|
|
|
|
</listitem>
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Download MD5 sum: &cairo-md5sum;</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Download size: &cairo-size;</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Estimated disk space required: &cairo-buildsize;</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Estimated build time: &cairo-time;</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">cairo Dependencies</bridgehead>
|
|
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2006-04-10 00:06:53 +08:00
|
|
|
|
<para role="required"><xref linkend="x-window-system"/> and
|
|
|
|
|
<xref linkend="pkgconfig"/></para>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2005-12-08 19:41:26 +08:00
|
|
|
|
<para role="optional"><ulink
|
|
|
|
|
url="http://www.freedesktop.org/Software/glitz">glitz</ulink>,
|
2006-10-05 20:51:08 +08:00
|
|
|
|
<ulink url="http://www.directfb.org/">DirectFB</ulink>,
|
2006-03-28 00:42:24 +08:00
|
|
|
|
<ulink url="http://xcb.freedesktop.org/wiki/">XCB</ulink>, and
|
2005-09-21 03:33:01 +08:00
|
|
|
|
<xref linkend="gtk-doc"/></para>
|
|
|
|
|
|
2006-10-05 20:51:08 +08:00
|
|
|
|
<bridgehead renderas="sect4">Optional (to provide extended test suite
|
|
|
|
|
coverage)</bridgehead>
|
|
|
|
|
<para role="optional"><xref linkend="gtk2"/> (for testing the PDF backend),
|
|
|
|
|
<xref linkend="poppler"/> (for testing the PDF backend),
|
|
|
|
|
<xref linkend="librsvg"/> (for testing the SVG backend), and
|
2007-01-16 05:27:34 +08:00
|
|
|
|
<ulink url="http://ltp.sourceforge.net/">LTP</ulink></para>
|
2006-10-05 20:51:08 +08:00
|
|
|
|
|
|
|
|
|
<para>Note that the GTK, Poppler and librsvg packages are circular in that
|
|
|
|
|
using them for test suite coverage requires installing cairo first,
|
|
|
|
|
then installing the desired package(s), then installing cairo again.</para>
|
|
|
|
|
|
2006-04-11 02:39:30 +08:00
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
|
<ulink url="&blfs-wiki;/cairo"/></para>
|
|
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
|
<title>Installation of cairo</title>
|
|
|
|
|
|
2005-09-21 06:01:54 +08:00
|
|
|
|
<para><application>cairo</application> will look for an
|
|
|
|
|
<application>X Render</application> <application>pkg-config</application>
|
|
|
|
|
file. If you use <application>XFree86</application> as your
|
|
|
|
|
<application>X</application> Window system, ensure this file exists
|
2006-10-05 20:51:08 +08:00
|
|
|
|
(<filename>/usr/X11R6/lib/pkgconfig/xrender.pc</filename>) before beginning
|
|
|
|
|
the installation.</para>
|
2005-09-21 04:50:47 +08:00
|
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
|
<para>Install <application>cairo</application> by running the following
|
|
|
|
|
commands:</para>
|
|
|
|
|
|
2006-10-05 20:51:08 +08:00
|
|
|
|
<screen><userinput>./configure --prefix=/usr &&
|
2005-09-21 03:33:01 +08:00
|
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
|
|
<para>To test the results, issue: <command>make check</command>.</para>
|
|
|
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
2006-03-28 00:42:24 +08:00
|
|
|
|
<sect2 role="commands">
|
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
2006-06-26 23:45:37 +08:00
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
|
|
|
|
href="../../xincludes/gtk-doc-rebuild.xml"/>
|
|
|
|
|
|
2006-03-28 00:42:24 +08:00
|
|
|
|
</sect2>
|
|
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
|
<sect2 role="content">
|
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
|
<seg>None</seg>
|
2006-04-11 02:39:30 +08:00
|
|
|
|
<seg>libcairo.{so,a}</seg>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
<seg>/usr/include/cairo and /usr/share/gtk-doc/html/cairo</seg>
|
|
|
|
|
</seglistitem>
|
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
|
|
<varlistentry id="libcairo">
|
2006-04-11 02:39:30 +08:00
|
|
|
|
<term><filename class='libraryfile'>libcairo.{so,a}</filename></term>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
<listitem>
|
|
|
|
|
<para>contains the 2D graphics functions required for rendering to
|
|
|
|
|
the various output targets.</para>
|
|
|
|
|
<indexterm zone="cairo libcairo">
|
2006-04-11 02:39:30 +08:00
|
|
|
|
<primary sortas="c-libcairo">libcairo.{so,a}</primary>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
</indexterm>
|
|
|
|
|
</listitem>
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
</sect1>
|