Releases
Please download one of the latest releases in order toget an API-stable version of cairo. You'll need both the cairo andpixman packages.
See In-Progress Development (below) for details ongetting and building the latest pre-release source code if that's whatyou're looking for.
A Visual Studio solution is also provided in the directory examples if you want to rebuild them. Under Linux and OSX, you may need to rebuild the examples. To do so, under Linux, open a terminal, go in the directory examples and type make. Under OSX, open a terminal, go in the directory examples and type make -f Makefile.osx. Im taking a college course that uses visual studio and using the programming language VB.Net. I downloaded visual basic for mac yesturday and opened up a project which I previously worked on for it not to work. Is there anyway of fixing this or is there anyone who has worked with visual basic for the mac that has any advice.
Binary Packages
GNU/Linux distributions
Many distributions including Debian,Fedora, and others regularly includerecent versions of cairo. As more and more applications depend oncairo, you might find that the library is already installed. To getthe header files installed as well may require asking for a -dev or-devel package as follows:
For Debian and Debian derivatives including Ubuntu:
For Fedora:
For openSUSE:
Windows
Precompiled binaries for Windows platforms can be obtained in avariety of ways.
From Dominic Lachowicz:
Since GTK+ 2.8 and newer depends on Cairo, you can have Cairoinstalled on Win32 as a side-effect of installing GTK+. For example,see The Glade/GTK+ for WindowsToolkit.
From Daniel Keep (edited by Kalle Vahlman):
Go to official GTK+ for Windows page.
You probably want at least the zlib, cairo, and libpng run-time archives(you can search on those strings to find them in thepage). That should be it. Just pop libcairo-2.dll, libpng13.dll andzlib1.dll into your working directory or system PATH, and away you go!
That gives you the base cairo functions, the PNG functions, and theWin32 functions.
Mac OS X
Using MacPorts, the port is called'cairo', so you can just type:
Visual Studio 10 Download Free
And to upgrade to newer versions once installed:
If you use fink instead, the command toinstall cairo is:
Best plugins for fl studio trap. In general, fink is more conservative about upgrading packages thanMacPorts, so the MacPorts version will be closer to the bleeding edge,while the fink version may well be more stable.
If you want to stay on the absolute cutting-edge of what's happeningwith cairo, and you don't mind playing with software that is unstableand full of rough edges, then we have several things you might enjoy:
Snapshots
We may from time to time create a snapshot of thecurrent state of cairo. These snapshots do not guarantee API stabilityas the code is still in an experimental state. Again, you'll want bothcairo and pixman packages from that directory.
Browsing the latest code
The cairo library itself is maintained with thegit version control system. You may browse thesource online using the cgitinterface.
Downloading the source with git
You may also use git to clone a local copy of the cairo library sourcecode. The following git commands are provided for your cut-and-pasteconvenience.
followed by periodic updates in each resulting directory:
Once you have a clone this way, you can browse it locally withgraphical tools such as gitk or gitview. You may also commit changeslocally with 'git commit -a'. These local commits will beautomatically merged with upstream changes when you next 'git pull',and you can also generate patches from them for submitting to thecairo mailing list with 'git format-patch origin'. To compile theclone, you need to run ./autogen.sh initially and then follow theinstructions in the file named INSTALL.
You may need some distribution-specific development packages to compilecairo. If your are using Debian or Ubuntu, you may findadditional details for Debian-derived systemshelpful.
Git under Linux/UNIX
If you can't find git packages for your distribution, (thoughcheck for a git-core package as well), you can get tar files fromhttp://code.google.com/p/git-core/downloads/list
Git on Windows
You can use Git on Windows either with msysgit or git inside Cygwin. Msysgit is the recommended way to go as the installation is much simpler and it provides a GUI. In all cases, make sure the drive you download the repository on is formatted NTFS, as Git will generate errors on FAT32.
MSYSGIT
See the msysgit project for thelatest information about git for Windows. You'll find a .exe installerfor git there, as well as pointers to the cygwin port of git as well. This is all you need to do.
GIT ON CYGWIN
Download and run the Cygwin Setup.exe from Cygwin's website. Walkthrough the initial dialog boxes until you reach the 'Select Packages'page. Click the 'View' button to display an alphabetical list ofpackages and select the 'git' package.
If you want to build using gcc, you will also need to select thefollowing packages:
Visual Studio Professional Download
- 'automake' ( anything >=1.7 )
- 'gcc-core'
- 'git' ( no need to click on this again if you did so above )
- 'gtkdoc'
- 'libtool'
- 'pkg-config'
Memorex expressit download windows 7. Whether you build with gcc or not:
Click 'Next' and Cygwin setup will download all you need. Afterdownloading, go to the directory where Cygwin is installed, and run'cygwin.bat'. This will open a command prompt.Mount anexisting directory on your hard drive, cd to that directory, and thenfollow the 'Downloading with git' instructions above.
Visual Studio Linux Download
If you want to build using Visual Studio and still want the latestsource, you will need cygwin, but you will only need to select the'git' package. See the VisualStudio page for more details.
- Download and install zlib. Build zlib from its /projects folder, and use LIB RELEASE configuration.
- Download and install libpng. Build libpng from its /projects folder and use LIB RELEASE configuration.
- Install the MozillaBuild environment from here: MozillaBuild
- If you chose the default install path, you'll find in c:mozilla-build several batch files. Edit the one corresponding to your version of VC++ (or a copy of it), and modify the INCLUDE and LIB paths. You'll need to add the zlib and libpng INCLUDE and LIBpaths. Also include cairosrc, cairoboilerplate, and pixmanpixman to the INCLUDE paths. Here's an example (your paths will vary obviously):
- Launch the batch file you just modified. It'll open a mingw window. Ignore the error messages that might appear at the top of the window.We'll now build everything in debug configuration. For release, replace CFG=debug by CFG=release
- Browse to pixman's folder (pixmanpixman), and run make -f Makefile.win32 CFG=debug
- Browse to Cairo's src folder (cairosrc), and run make -f Makefile.win32 static CFG=debug.You now have your library in cairosrcdebug (or release).You can build the remaining ancillary cairo parts with the following steps, or go enjoy your library now.
- Browse to Cairo's boilerplate folder (cairoboilerplate), and run make -f Makefile.win32 CFG=debug
- Browse to Cairo's test pdiff folder (cairotestpdiff), and run make -f Makefile.win32
- Browse to Cairo's test folder (cairotest), and run make -f Makefile.win32 CFG=debug
- Browse to Cairo's benchmark folder (cairoperf), and run make -f Makefile.win32 CFG=debug
Building in Visual Studio
You can create a Visual Studio solution and projects for each of these: pixman, cairo/src, cairo/boilerplate, cairo/test, cairo/perf. Check each project's properties, make them all makefile projects, and set the build command (NMake) as follows. This example applies to cairo/src in release configuration, residing in C:WorkCairosrc, with the Mozilla Build Tools installed in C:mozilla-build:
Modify the paths and the configuration as needed for the other projects.