<div dir="ltr">While both of these seem to be good solutions (I am leaning more towards quartz than NSOpenGL) I cannot find any "Hello World" demonstrations that create a simple window. Is there a generic GLUT like function that abstracts the platform specific window creation boiler plate code? I found one example to show a manual method for xlib at <a href="http://en.literateprograms.org/Hello_World_(C,_Cairo)">http://en.literateprograms.org/Hello_World_(C,_Cairo)</a> but cannot seem to find a Mac OS X or Windows example.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 1, 2013 at 11:52 PM, Ryan Schmidt <span dir="ltr"><<a href="mailto:cairo-2013a@ryandesign.com" target="_blank">cairo-2013a@ryandesign.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Feb 1, 2013, at 20:51, The Devils Jester wrote:<br>
<br>
> 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.<br>
<br>
</div>In MacPorts:<br>
<br>
$ port variants cairo<br>
cairo has the variants:<br>
opengl: Add OpenGL graphics interface<br>
* requires x11<br>
quartz: Support for native Mac OS X graphics<br>
universal: Build for multiple architectures<br>
[+]x11: Enable X11 support<br>
<br>
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.<br>
<br>
$ sudo port install cairo +quartz -x11<br>
<br>
If you have any further trouble with cairo or other ports in MacPorts, feel free to write to the macports-users mailing list.<br>
<br>
<br>
</blockquote></div><br></div>