[cairo] Mac OS X, getting started?

Ryan Schmidt cairo-2013a at ryandesign.com
Fri Feb 1 21:52:29 PST 2013

On Feb 1, 2013, at 20:51, The Devils Jester wrote:

> I am looking into using Cairo as a graphics backend for a project of mine and am having trouble getting a Mac OS X build setup.  Using MacPorts, or Homebrew both want to pull the XQuartz version when I do not want that.

In MacPorts:

$ port variants cairo
cairo has the variants:
   opengl: Add OpenGL graphics interface
     * requires x11
   quartz: Support for native Mac OS X graphics
   universal: Build for multiple architectures
[+]x11: Enable X11 support

So you see the x11 variant is enabled by default. If you don't want X11 graphics, and would prefer Quartz (a.k.a. native OS X) graphics, select quartz and deselect x11.

$ sudo port install cairo +quartz -x11

If you have any further trouble with cairo or other ports in MacPorts, feel free to write to the macports-users mailing list.

More information about the cairo mailing list