Difference between revisions of "Cairo"

From CBLFS
Jump to navigationJump to search
 
(16 intermediate revisions by 6 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://cairographics.org/releases/cairo-{{Cairo-Version}}.tar.gz
+
|http://cairographics.org/releases/cairo-{{Cairo-Version}}.tar.gz
 
|}
 
|}
  
 
----
 
----
  
== Introduction to Cairo ==
+
{{Package-Introduction|Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System, Win32, image buffers, and PostScript, PDF, and SVG file output. Experimental backends include OpenGL (through [[Glitz]]), Quartz, and XCB.|http://cairographics.org/}}
 
 
Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X 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 consistent output on all output media while taking advantage of display hardware acceleration when available (e.g., through the X Render Extension). The cairo API provides operations similar to the drawing operators of PostScript and PDF. Operations in cairo 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.).
 
  
 
== Dependencies ==
 
== Dependencies ==
Line 16: Line 14:
 
* [[X Window System]]
 
* [[X Window System]]
 
* [[pkg-config]]
 
* [[pkg-config]]
 +
* [[Xorg7/Libraries| Xorg Library Pixman]]
 +
* [[libpng]]
 +
 
=== Optional ===
 
=== Optional ===
 +
* [[DirectFB]]
 
* [[Glitz]]
 
* [[Glitz]]
 
* [[XCB]]
 
* [[XCB]]
 
* [[Gtk-Doc]]
 
* [[Gtk-Doc]]
 +
* [[Poppler]]
 +
* [[librsvg]]
 +
* [[Ghostscript]]
 +
 +
== Additional Configuration Options ==
 +
 +
''--enable-xcb'': Enable Cairo's [[XCB]] backend.
 +
 +
''--enable-glitz'': Enable Cairo's [[Glitz]] backend.
 +
 +
''--enable-directfb'': Enable cairo's [[DirectFB]] backend.
 +
 +
''--enable-gtk-doc'': Use [[Gtk-Doc]] to build documentation.
 +
 +
{{Note|If pixman-0.11.10 was used in Xorg-Libraries, and Pango will be used with Cairo to build GTK+2.0, then upgrade pixman to 0.12.0 and cairo to a version greater than 1.7.6, otherwise pango will not use cairo.}}
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 25: Line 42:
 
Compile the package:
 
Compile the package:
  
sed -i -e 's/type == GLITZ/color.fourcc == GLITZ/' \
 
        -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
 
    src/cairo-glitz-surface.c &&
 
 
  ./configure --prefix=/usr &&
 
  ./configure --prefix=/usr &&
 
  make
 
  make
Line 41: Line 55:
 
Compile the package:
 
Compile the package:
  
sed -i -e 's/type == GLITZ/color.fourcc == GLITZ/' \
+
  CC="gcc ${BUILD32}" PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" \
        -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
+
USE_ARCH=32 ./configure --prefix=/usr &&
    src/cairo-glitz-surface.c &&
 
  CC="gcc ${BUILD32}" PKG_CONFIG_PATH=$PKG_CONFIG_PATH32 \
 
    ./configure --prefix=/usr &&
 
 
  make
 
  make
  
Line 56: Line 67:
 
Compile the package:
 
Compile the package:
  
sed -i -e 's/type == GLITZ/color.fourcc == GLITZ/' \
+
  CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="$PKG_CONFIG_PATHN32" \
        -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
+
USE_ARCH=n32 ./configure --prefix=/usr --libdir=/usr/lib32 &&
    src/cairo-glitz-surface.c &&
 
  CC="gcc ${BUILDN32}" PKG_CONFIG_PATH=$PKG_CONFIG_PATHN32 \
 
    ./configure --prefix=/usr --libdir=/usr/lib32 &&
 
 
  make
 
  make
  
Line 71: Line 79:
 
Compile the package:
 
Compile the package:
  
sed -i -e 's/type == GLITZ/color.fourcc == GLITZ/' \
+
  CC="gcc ${BUILD64}" PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" \
        -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
+
USE_ARCH=64 ./configure --prefix=/usr --libdir=/usr/lib64 &&
    src/cairo-glitz-surface.c &&
 
  CC="gcc ${BUILD64}" PKG_CONFIG_PATH=$PKG_CONFIG_PATH64 \
 
    ./configure --prefix=/usr --libdir=/usr/lib64 &&
 
 
  make
 
  make
  
Line 81: Line 86:
  
 
  make install
 
  make install
 +
 +
= Contents =
 +
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
! Installed Programs:
 +
| None
 +
|-valign="top"
 +
! Installed Libraries:
 +
| libcairo.{a,la,so}
 +
|-valign="top"
 +
! Installed Directory:
 +
| /usr/include/cairo
 +
|}
 +
 +
[[Category:X Libs]]

Latest revision as of 20:10, 8 April 2009

Download Source: http://cairographics.org/releases/cairo-1.10.0.tar.gz

Introduction to Cairo

Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System, Win32, image buffers, and PostScript, PDF, and SVG file output. Experimental backends include OpenGL (through Glitz), Quartz, and XCB.

Project Homepage: http://cairographics.org/

Dependencies

Required

Optional

Additional Configuration Options

--enable-xcb: Enable Cairo's XCB backend.

--enable-glitz: Enable Cairo's Glitz backend.

--enable-directfb: Enable cairo's DirectFB backend.

--enable-gtk-doc: Use Gtk-Doc to build documentation.

Caution.png

Note

If pixman-0.11.10 was used in Xorg-Libraries, and Pango will be used with Cairo to build GTK+2.0, then upgrade pixman to 0.12.0 and cairo to a version greater than 1.7.6, otherwise pango will not use cairo.

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" \
USE_ARCH=32 ./configure --prefix=/usr &&
make

Install the package

make install

N32

Compile the package:

CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="$PKG_CONFIG_PATHN32" \
USE_ARCH=n32 ./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package

make install

64Bit

Compile the package:

CC="gcc ${BUILD64}" PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" \
USE_ARCH=64 ./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package

make install

Contents

Installed Programs: None
Installed Libraries: libcairo.{a,la,so}
Installed Directory: /usr/include/cairo