Difference between revisions of "Cairo/pango"
(→Instructions for Mac OS X) |
(Added Windows instructions.) |
||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System, Quartz, Win32, image buffers, PostScript, PDF, and SVG file output. Experimental backends include OpenGL (through glitz), XCB, BeOS, OS/2, and DirectFB. | Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System, Quartz, Win32, image buffers, PostScript, PDF, and SVG file output. Experimental backends include OpenGL (through glitz), XCB, BeOS, OS/2, and DirectFB. | ||
+ | Pango is a library for laying out and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+ widget toolkit. | ||
== Instructions for Windows == | == Instructions for Windows == | ||
+ | |||
=== MinGW === | === MinGW === | ||
− | + | For the MinGW toolset it's best to download the provided Windows binaries form the GTK+ project. | |
+ | * Download the all-in-one bundle of the [http://www.gtk.org/download-windows.html Windows GTK+ stack] including 3rd-party dependencies for windows: [http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.20/gtk+-bundle_2.20.0-20100406_win32.zip GTK+ 2.20] or [http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+-bundle_2.16.6-20100207_win32.zip GTK+ 2.16] | ||
+ | * Unzip the package to a directory, e.g. C:\Development\gtk | ||
+ | * Set environment variables so that CMake can find pkf-config | ||
+ | set PKG_CONFIG_PATH=C:\Development\gtk\lib\pkgconfig | ||
+ | set PATH=C:\Development\gtk\bin;%PATH% | ||
+ | CMake will find pkg-config and all the libraries necessary to build the pdfcairo, pscairo, pngcairo, svgcairo and wincairo devices. xcairo will not be built since the X-Headers are not present on Windows. | ||
== Instructions for Linux == | == Instructions for Linux == | ||
− | + | Usually the GTK+ libraries are already installed on your Linux distribution, but the developer packages might be missing | |
== Instructions for Mac OS X == | == Instructions for Mac OS X == |
Revision as of 00:31, 8 April 2010
Contents
Description
Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System, Quartz, Win32, image buffers, PostScript, PDF, and SVG file output. Experimental backends include OpenGL (through glitz), XCB, BeOS, OS/2, and DirectFB. Pango is a library for laying out and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+ widget toolkit.
Instructions for Windows
MinGW
For the MinGW toolset it's best to download the provided Windows binaries form the GTK+ project.
- Download the all-in-one bundle of the Windows GTK+ stack including 3rd-party dependencies for windows: GTK+ 2.20 or GTK+ 2.16
- Unzip the package to a directory, e.g. C:\Development\gtk
- Set environment variables so that CMake can find pkf-config
set PKG_CONFIG_PATH=C:\Development\gtk\lib\pkgconfig set PATH=C:\Development\gtk\bin;%PATH%
CMake will find pkg-config and all the libraries necessary to build the pdfcairo, pscairo, pngcairo, svgcairo and wincairo devices. xcairo will not be built since the X-Headers are not present on Windows.
Instructions for Linux
Usually the GTK+ libraries are already installed on your Linux distribution, but the developer packages might be missing
Instructions for Mac OS X
- Download the GTK_2.18.5-X11.pkg package from http://r.research.att.com/ and install it
- Add to your .profile file in the home directory:
export PATH=/Library/Frameworks/GTK+.framework/Resources/bin:$PATH
cmake is now able to find the cairo/pango libraries via pkg-config.