[cairo] Cairo documentation example error

Fabien Costantini fab672000 at yahoo.fr
Mon Jul 10 02:37:48 PDT 2006


In
  http://www.cairographics.org/manual/cairo-Paths.html#cairo-arc

In the ellipse example:

  Replace:
cairo_save (cr);
cairo_translate (x + width / 2., y + height / 2.);
cairo_scale (1. / (height / 2.), 1. / (width / 2.));
cairo_arc (cr, 0., 0., 1., 0., 2 * M_PI);
cairo_restore (cr);

  By:

cairo_save (cr);
cairo_translate (cr, x + width / 2., y + height / 2.);
cairo_scale (cr, 1. / (height / 2.), 1. / (width / 2.));
cairo_arc (cr, 0., 0., 1., 0., 2 * M_PI);
cairo_restore (cr);
Hope this will help,
Fabien


----- Message d'origine ----
De : Behdad Esfahbod <behdad at behdad.org>
À : Mike Emmel <mike.emmel at gmail.com>
Cc : Cairo List <cairo at cairographics.org>
Envoyé le : Lundi, 10 Juillet 2006, 1h31mn 54s
Objet : Re: [cairo] backend pc file requires cairo

On Sun, 2006-07-09 at 13:57 -0700, Mike Emmel wrote:
> prefix=/home/memmel/Source/Build
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${prefix}/include
> 
> Name: cairo
> Description: Multi-platform 2D graphics library
> Version: 1.1.11
  ^^^^^^^^^^^^^^^

It shouldn't happen with 1.2.  Let me know if it does.

behdad


> Requires.private:   cairo-directfb libpng12 directfb freetype2 >=
> 8.0.2 fontconfig
> Libs:  -L${libdir} -lcairo
> Cflags:  -I${includedir}/cairo
> 
> 
> And its because of this in cairo.pc.in
> Its better to remove the backend dependcy I agree
> 
> Its coming for this if you trace back.
> 
> @PKGCONFIG_REQUIRES@: @CAIRO_REQUIRES@
> 
> On 7/9/06, Behdad Esfahbod <behdad at behdad.org> wrote:
> > On Sun, 2006-07-09 at 02:10 -0400, Mike Emmel wrote:
> > > pkg-config --cflags cairo.pc
> > > Failed to open '/home/memmel/Source/Build/lib/pkgconfig/cairo-directfb.pc':
> > > Too many open files
> > >
> > >
> > > I get this because the backend pc file requires cairo which requires it.
> >
> > That's weird.  cairo.pc shouldn't require any of the backend pc files.
> > Can you paste your cairo.pc please?
> >
> > behdad
> >
> > > Mike
> > > _______________________________________________
> > > cairo mailing list
> > > cairo at cairographics.org
> > > http://cairographics.org/cgi-bin/mailman/listinfo/cairo
> > --
> > behdad
> > http://behdad.org/
> >
> > "Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
> >         -- Dan Bern, "New American Language"
> >
> >
-- 
behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"

_______________________________________________
cairo mailing list
cairo at cairographics.org
http://cairographics.org/cgi-bin/mailman/listinfo/cairo








More information about the cairo mailing list