Hi Hugo,<br><br>Thanks for the stuff. I&#39;ll try it as soon as I managed to fire up cairomm. And it seems that process is not so obvius. I&#39;ve compiled it from source (CVS) just the way you described. Xcode&#39;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&#39;s content to Baz&#39;s one it works smoothly.
<br>Anyways ... I&#39;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 &quot;real&quot; cross-platform canvas like thing (with very *minimal deps*) for a modeler app (kind of:) ... do a little UML like stuff, flowchats, dashboards, etc.
<br>Btw: I haven&#39;t find a clear statement about the licensing conditions of cairo. If there is one where can I find? It&#39;d be lovely to see a license that does not restrict commercial usage:)<br><br>Cheers,<br>P<br>
<br>ps: I&#39;ve sent a mail yesterday evening (with a screenshot) and some kudos to you guys:) ... I&#39;m not sure you got that (pending on list admin approval because of the attachement).<br><br><div><span class="gmail_quote">
On 6/22/07, <b class="gmail_sendername">Hugo Vincent</b> &lt;<a href="mailto:hugo.vincent@gmail.com">hugo.vincent@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;m using the official Cairo 1.4.8 release, and Cairomm from CVS<br>(checked out in March...), both compiled from source.<br><br>Default configure for Cairomm (no arguments), and Cairo configured as:<br>./confgure --disable-xlib --disable-xlib-render --enable-quartz --
<br>disable-freetype --enable-ps --enable-png --enable-pdfs --disable-svg<br>--enable-atsui<br><br>Cairomm doesn&#39;t support Quartz in any released versions AFAIK. I<br>wrote a patch that adds Quartz support, and it&#39;s been accepted
<br>upstream and is in CVS, so you need to use a recent CVS checkout.<br>Unless you need Cairomm it might just be easier to use plain Cairo.<br><br>You might also want to look LibPapyrus. I&#39;m using that in my Cocoa<br>
application, and I wrote a patch to make it work nicely with Cocoa<br>events and such. My modified version is here: <a href="http://hugovincent.no-">http://hugovincent.no-</a><br><a href="http://ip.org/files/Papyrus-Hugo-0.71.tar.bz2">
ip.org/files/Papyrus-Hugo-0.71.tar.bz2</a><br>and an explanation is here: <a href="http://sourceforge.net/mailarchive/">http://sourceforge.net/mailarchive/</a><br>forum.php?thread_name=B8EC388F-60F1-4111-AFAB-39153AAA1861%
<br>40gmail.com&amp;forum_name=libpapyrus-devel<br><br>If nothing else, treat it as a more-worked-through example of how to<br>use Cairo(mm) on Cocoa.<br><br>Regarding XCode, select the target (on the list on the left side of
<br>the window) and go File-&gt;Get Info. No go to the Build tab, and modify<br>the Header Search Path, and Library Search Path options. You may also<br>need to put &quot;-lcairo&quot; in Other Linker Flags.<br><br>Regards,
<br>Hugo Vincent.<br><br>On 22/06/2007, at 7:00 AM, <a href="mailto:cairo-request@cairographics.org">cairo-request@cairographics.org</a> wrote:<br>&gt; Date: Thu, 21 Jun 2007 14:24:04 +0200<br>&gt; From: &quot; Ipacs P?ter &quot; &lt;
<a href="mailto:peter@ipacs.hu">peter@ipacs.hu</a>&gt;<br>&gt; Subject: Re: [cairo] [cairo osx] OS X example<br>&gt;<br>&gt; Oh boy .. this is getting deeper and deeper.<br>&gt;<br>&gt; Macport&#39;s Cairomm port does not contain quartz_surface.h since it
<br>&gt; is not<br>&gt; included in the official 1.2.4 version (<br>&gt; <a href="http://cairographics.org/releases/cairomm-1.2.4.tar.gz">http://cairographics.org/releases/cairomm-1.2.4.tar.gz</a>). I&#39;ve<br>&gt; checked out
<br>&gt; cairomm from CVS and I&#39;ve managed to install it with quartz support<br>&gt; (freshly<br>&gt; checked out version is 1.0). Apart from the versioning mistery so<br>&gt; far so<br>&gt; good.<br>&gt; Now the stupid-beginner question: how can I use the installed
<br>&gt; cairomm from<br>&gt; Xcode? It is installed under /usr/... that is unfortunatelly<br>&gt; unusable from<br>&gt; Xcode + I have no experience using 3rd party libraries within Xcode.<br>&gt;<br>&gt; Could you adwise something?:)
<br>&gt;<br>&gt; Cheers,<br>&gt; P<br><br>_______________________________________________<br>cairo mailing list<br><a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br><a href="http://cairographics.org/cgi-bin/mailman/listinfo/cairo">
http://cairographics.org/cgi-bin/mailman/listinfo/cairo</a><br></blockquote></div>