[cairo] [cairo osx] OS X example

Ipacs Péter peter at ipacs.hu
Fri Jun 22 05:42:26 PDT 2007

Hi Hugo,

Thanks for the stuff. I'll try it as soon as I managed to fire up cairomm.
And it seems that process is not so obvius. I've compiled it from source
(CVS) just the way you described. Xcode's setup is good (the example Baz has
provided works very well). But I get a gray screen with cairomm. If I
replace the .m file's content to Baz's one it works smoothly.
Anyways ... I'm not gonna give up:) Plus, it seems we have similar goals in
a way or another: I needed cairo (the native OSX version) to implement a
"real" cross-platform canvas like thing (with very *minimal deps*) for a
modeler app (kind of:) ... do a little UML like stuff, flowchats,
dashboards, etc.
Btw: I haven't find a clear statement about the licensing conditions of
cairo. If there is one where can I find? It'd be lovely to see a license
that does not restrict commercial usage:)


ps: I've sent a mail yesterday evening (with a screenshot) and some kudos to
you guys:) ... I'm not sure you got that (pending on list admin approval
because of the attachement).

On 6/22/07, Hugo Vincent <hugo.vincent at gmail.com> wrote:
> I'm using the official Cairo 1.4.8 release, and Cairomm from CVS
> (checked out in March...), both compiled from source.
> Default configure for Cairomm (no arguments), and Cairo configured as:
> ./confgure --disable-xlib --disable-xlib-render --enable-quartz --
> disable-freetype --enable-ps --enable-png --enable-pdfs --disable-svg
> --enable-atsui
> Cairomm doesn't support Quartz in any released versions AFAIK. I
> wrote a patch that adds Quartz support, and it's been accepted
> upstream and is in CVS, so you need to use a recent CVS checkout.
> Unless you need Cairomm it might just be easier to use plain Cairo.
> You might also want to look LibPapyrus. I'm using that in my Cocoa
> application, and I wrote a patch to make it work nicely with Cocoa
> events and such. My modified version is here: http://hugovincent.no-
> ip.org/files/Papyrus-Hugo-0.71.tar.bz2
> and an explanation is here: http://sourceforge.net/mailarchive/
> forum.php?thread_name=B8EC388F-60F1-4111-AFAB-39153AAA1861%
> 40gmail.com&forum_name=libpapyrus-devel
> If nothing else, treat it as a more-worked-through example of how to
> use Cairo(mm) on Cocoa.
> Regarding XCode, select the target (on the list on the left side of
> the window) and go File->Get Info. No go to the Build tab, and modify
> the Header Search Path, and Library Search Path options. You may also
> need to put "-lcairo" in Other Linker Flags.
> Regards,
> Hugo Vincent.
> On 22/06/2007, at 7:00 AM, cairo-request at cairographics.org wrote:
> > Date: Thu, 21 Jun 2007 14:24:04 +0200
> > From: " Ipacs P?ter " <peter at ipacs.hu>
> > Subject: Re: [cairo] [cairo osx] OS X example
> >
> > Oh boy .. this is getting deeper and deeper.
> >
> > Macport's Cairomm port does not contain quartz_surface.h since it
> > is not
> > included in the official 1.2.4 version (
> > http://cairographics.org/releases/cairomm-1.2.4.tar.gz). I've
> > checked out
> > cairomm from CVS and I've managed to install it with quartz support
> > (freshly
> > checked out version is 1.0). Apart from the versioning mistery so
> > far so
> > good.
> > Now the stupid-beginner question: how can I use the installed
> > cairomm from
> > Xcode? It is installed under /usr/... that is unfortunatelly
> > unusable from
> > Xcode + I have no experience using 3rd party libraries within Xcode.
> >
> > Could you adwise something?:)
> >
> > Cheers,
> > P
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cairographics.org/archives/cairo/attachments/20070622/c78ee1ca/attachment.htm 

More information about the cairo mailing list