%general-entities; ]> $LastChangedBy$ $Date$ cairo-&cairo-version; cairo 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, PostScript, PDF and SVG. Experimental backends include OpenGL, 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.). &lfs71_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &cairo-md5sum; Download size: &cairo-size; Estimated disk space required: &cairo-buildsize; Estimated build time: &cairo-time; Additional Downloads Required patch (if you intend to compile any Mozilla products): Cairo Dependencies Required , and Recommended , (if you want to build Cairo without Libpng you will need to add --disable-png --disable-svg to the configure options and remove --enable-tee) and . Optional , DirectFB, (for testing the postscript backend), (for testing the PDF backend), , , (for testing the SVG backend), libspectre (for testing the PDF backend), , (for testing the PDF backend), , Skia and Valgrind. There is a reciprocal dependency with the Gtk 2, Librsvg and Poppler packages. As the test suite is currently unreliable, it is best to simply skip it at this time. User Notes: Installation of Cairo Install Cairo by running the following commands: sed -i 's#check-plt.sh ##' src/Makefile.in && patch -p1 < ../cairo-&cairo-version;-expose-snapshot-1.patch && ./configure --prefix=/usr --disable-static --enable-tee --enable-xcb && make Note that the tests take a long time to run, many of them fail for unknown reasons and it has been known to cause a kernel panic. If you want to run the tests issue: make -k check. Now, as the root user: make install Command Explanations sed -i 's#check-plt.sh ##' src/Makefile.in: This sed disables running a test which is known to fail with the expose-snapshot patch. patch -p1 < ../cairo-&cairo-version;-expose-snapshot-1.patch: This patch exposes some private functions that Firefox relies on. Applying this patch allows Firefox to use the system installed Cairo. : This is used by Firefox. If you don't enable the Cairo's tee surface backend you won't be able to build Firefox with . : Enable Cairo's OpenGL backend. : Enable Cairo's libxcb backend. : Enable the Cairo OpenVG backend (requires installed, configured with --enable-gallium-egl and --enable-openvg). Contents Installed Programs Installed Libraries Installed Directories cairo-sphinx and cairo-trace libcairo.so, libcairo-gobject.so and libcairo-script-interpreter.so /usr/include/cairo, /usr/lib/cairo and /usr/share/gtk-doc/html/cairo Short Descriptions cairo-trace generates a log of all calls made by an application to Cairo. cairo-trace libcairo.so contains the 2D graphics functions required for rendering to the various output targets. libcairo.so libcairo-gobject.so contains functions that integrate Cairo with 's GObject type system. libcairo-gobject.so libcairo-script-interpreter.so contains the script interpreter functions for executing and manipulating Cairo execution traces. libcairo-script-interpreter.so