Hi,<br><br>The solution works fine. Thanks:)<br><br>But ... something looks very strange. I have a feeling that the rendering uses X11. Here is the list of files used runtime:<br><br>/Users/pedro/Desktop/freedesktop/CVS/cairo-demo/quartz
<br>/Users/pedro/Desktop/freedesktop/CVS/cairo-demo/quartz/fdclock<br>/usr/X11R6/lib/libSM.6.0.dylib<br>/usr/X11R6/lib/libICE.6.3.dylib<br>/Library/Frameworks/Mono.framework/Versions/1.2.4/lib/libexpat.0.5.0.dylib<br>/Library/Frameworks/Mono.framework/Versions/1.2.4/lib/libfreetype.6.3.8.dylib
<br>/opt/local/lib/libXrender.1.3.0.dylib<br>/opt/local/lib/libcairo.2.11.4.dylib<br>/opt/local/lib/libfontconfig.1.2.0.dylib<br>/Library/Frameworks/Mono.framework/Versions/1.2.4/lib/libpng12.0.0.0.dylib<br>/opt/local/lib/libz.1.2.3.dylib
<br>/usr/X11R6/lib/libX11.6.2.dylib<br>/opt/local/lib/libfreetype.6.3.15.dylib<br>/opt/local/lib/libexpat.1.5.2.dylib<br>/opt/local/lib/iNode3486795<br>/opt/local/lib/iNode3486787<br>/opt/local/lib/libiconv.2.4.0.dylib<br>
/System/Library/CoreServices/CharacterSets/CFUnicodeData-L.mapping<br>/System/Library/CoreServices/CharacterSets/CFCharacterSetBitmaps.bitmap<br>/Library/Caches/com.apple.LaunchServices-014501.csstore<br>/usr/lib/dyld<br>
/usr/lib/libSystem.B.dylib<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText<br>/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
<br>/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore<br>/usr/lib/libicucore.A.dylib<br>/usr/lib/libobjc.A.dylib<br>/usr/lib/libstdc++.6.0.4.dylib<br>/usr/lib/libgcc_s.1.dylib
<br>/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit<br>/usr/lib/libauto.dylib<br>/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices<br>/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
<br>/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit<br>/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib<br>/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
<br>/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration<br>/usr/lib/libbsm.dylib<br>/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
<br>/System/Library/Frameworks/Security.framework/Versions/A/Security<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices<br>/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
<br>/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib<br>/usr/lib/libxml2.2.dylib<br>/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
<br>/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition<br>/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
<br>/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink<br>/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help<br>/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
<br>/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print<br>/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering<br>
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices<br>/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
<br>/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels<br>/usr/lib/libcups.2.dylib<br>/usr/lib/libcrypto.0.9.7.dylib<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
<br>/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
<br>/System/Library/CoreServices/Encodings/libLatin2Converter.dylib<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
<br>/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib<br>/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
<br>/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib<br>/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
<br>/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage<br>/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD<br>/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
<br>/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv<br>/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation<br>/Library/Frameworks/ApplicationEnhancer.framework/Versions/A/ApplicationEnhancer
<br>/dev/ttyp1<br>/dev/ttyp1<br>/dev/ttyp1<br>/tmp/com.apple.csseed.93<br>apple.shm.notification_center<br><br>Another funny thing: the clock goes anticlokcwise. Is it normal?<br><br>Thanks,<br>P<br><br><div><span class="gmail_quote">
On 6/20/07, <b class="gmail_sendername">Ipacs Péter
</b> &lt;<a href="mailto:peter@ipacs.hu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">peter@ipacs.hu</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;">
Hi Brain,<br><br>
<div><span><span class="gmail_quote">On 6/20/07, <b class="gmail_sendername">Baz</b> &lt;<a href="mailto:brian.ewins@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">brian.ewins@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;">
On 20/06/07, Ipacs Péter &lt;<a href="mailto:peter@ipacs.hu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">peter@ipacs.hu</a>&gt; wrote:<br>&gt; Hi there,<br>&gt;<br>&gt; I&#39;m quite new to cairo so please excuse me if I ask obvious questions:)
<br><br>No problem.</blockquote>
</span><div><br>Thx:) <br></div><span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; I&#39;m trying to build the quartz example from the CVS
<br>
&gt; (<a href="http://webcvs.cairographics.org/cairo-demo/quartz/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://webcvs.cairographics.org/cairo-demo/quartz/</a> ) but<br>&gt; it fails.<br>

<br>That is pretty old... its not been kept up-to-date.</blockquote></span><div>
<br>That&#39;s was my hunch as well. <br></div><span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; This is what I get:
<br>&gt; cc -g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
<br>&gt; -Wredundant-decls `pkg-config --cflags cairo`&nbsp;&nbsp; -c -o main.o main.c<br>&gt; main.c: In function &#39;TestWindowEventHandler&#39;:<br>&gt; main.c:65: error: incompatible type for argument 1 of<br>&gt; &#39;cairo_quartz_surface_create&#39;
<br><br>Back in January or so the old quartz surface was replaced with a new<br>shiny one Vlad wrote. Its much faster but incompatible with the old<br>api (BTW quartz and atsui are still officially &#39;unsupported&#39; at the
<br>moment, which is why there&#39;s no docs for these apis on the website,<br>and why things became incompatible; this should change in the next<br>month or so. I hope).<br><br>The new name for that function is:<br>cairo_quartz_surface_create_for_cg_context
</blockquote></span><div><br>I&#39;ll try it as soon as I get back to my machine. <br></div><span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

&gt; 
main.c: In function &#39;RedrawTimerCallback&#39;:<br>&gt; main.c:188: warning: &#39;SetRect&#39; is deprecated (declared at<br>&gt; /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:2401)
<br>&gt; main.c: In function &#39;CreateTestWindow&#39;:<br>&gt; main.c:205: warning: &#39;SetRect&#39; is deprecated (declared at<br>&gt; /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:2401)
<br>&gt; make: *** [main.o] Error 1<br>&gt;<br>&gt; What do you think about it?<br><br>The warnings you can probably get past, so apart from creating the<br>surface the example should pretty much work.<br><br>&gt; Another question:
<br>&gt; Are there any OS X examples around that can be used out-of-the-box? I mean<br>&gt; examples that does not require hundreds of dependencies and can be compiled<br>&gt; by a simple &#39;make&#39; or something.<br>

<br>
I don&#39;t think so, unless someone else has one handy? A gui for the<br>test suite, or a standalone svg viewer would be nice to have... </blockquote></span><div><br>I can give you a hand when I become a little bit more familiar with Cairo:) 
<br></div><span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">since<br>native os x apps just call quartz, the main use for cairo on os x is
<br>
to support cross-platform tools/toolkits, like mozilla, gtk, OOo, SWT,<br>python. So mostly users are porting apps rather than writing mini-apps<br>from scratch.<br><br>We do have a neeed for a small demo app to figure out why all the
<br>flipping is needed in the quartz code - I&#39;m next at my mac tomorrow,<br>I&#39;ll try to put one together. If you still can&#39;t get that demo to<br>compile, let me know and I&#39;ll fix that too.</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


&gt; Cheers,<br>&gt; Peter<br><br>As Carl says to new users - have fun :)</blockquote></span><div><br>Will do for sure:) <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Cheers,<br>Baz<br></blockquote></div><br>Cheers,<br><span>P</span></blockquote></div>