Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
README: Update required dependencies
Also adds mention of the skia backend.
  • Loading branch information
Bryce Harrington committed Sep 18, 2014
1 parent d1fa4d4 commit 33a54e7
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions README
Expand Up @@ -67,29 +67,31 @@ backends. Further, the supported backends can be divided into the
"platform" backends which depend on some underlying platform-specific
system, (such as the X Window System or some other window system).

As an example, for a standard Linux build, (with image, png, pdf,
PostScript, svg, and xlib surface backends, and the freetype font
backend), the following sample commands will install necessary
dependencies:
As an example, for a standard Linux build similar to what's shipped by
your distro, (with image, png, pdf, PostScript, svg, and xlib surface
backends, and the freetype font backend), the following sample commands
will install necessary dependencies:

Debian (and similar):

apt-get install libpng12-dev libz-dev libxrender-dev libfontconfig1-dev
apt-get build-dep cairo

Fedora (and similar):

yum install libpng-devel zlib-devel libXrender-devel fontconfig-devel

(Those commands intentionally don't install pixman from a distribution
package since if you're manually compiling cairo, then you likely want
to grab pixman from the same place at the same time and compile it as
well.)
Technically you probably don't need pixman from the distribution since
if you're manually compiling Cairo you probably want an updated pixman
as well. However, if you follow the default settings and install pixman
to /usr/local, your Cairo build should properly use it in preference to
the system pixman.


Supported, "standard" surface backends
------------------------------------
image backend (required)
------------------------
pixman >= 0.20.2 http://cairographics.org/releases
pixman >= 0.30.0 http://cairographics.org/releases

png support (can be left out if desired, but many
----------- applications expect it to be present)
Expand Down Expand Up @@ -179,10 +181,18 @@ Experimental surface backends
packages and developer dependencies are available at Netlabs:
ftp://ftp.netlabs.org/pub/cairo

skia backend
------------
Requires the skia library as of June 2014. Since skia is not
API stable, building against newer (or older) versions of skia
will probably fail.


Compiling
=========
See the INSTALL document for build instructions.


History
=======
Cairo was originally developed by Carl Worth <cworth@cworth.org> and
Expand Down

0 comments on commit 33a54e7

Please sign in to comment.