[cairo] Bug in libsvg-cairo-0.1.6: svg-cairo.h has incorrect path for cairo.h
John Ellson
ellson at research.att.com
Fri Aug 3 06:42:57 PDT 2012
On 08/03/2012 01:39 AM, Patrick McMunn wrote:
> Earlier this evening I was compiling DirectFB 1.6.1 with SVG support.
> During compilation, it included the header file
> /usr/include/svg-cairo.h and failed with an error saying cairo.h
> doesn't exist. As it turns out, /usr/include/cairo.h doesn't exist,
> but /usr/include/cairo/cairo.h does. So I opened
> /usr/include/svg-cairo.h, edited line 25 from "#include <cairo.h>" to
> "#include <cairo/cairo.h>" and the compilation then proceeded without
> further errors. I am using libsvg-cairo-0.1.6 and cairo-1.10.2 on
> Funtoo (a Gentoo fork). Whether cairo's header installation path has
> changed since earlier versions or what, I do not know. However it
> appears that as it is libcairo-svg has a typo which should be
> corrected.
>
Patrick,
I think the normal expectation is that you would have -I/usr/include/cairo
in your CFLAGS. This can be set by using pkg-config:
$ /usr/bin/pkg-config cairo --cflags
-I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng15
John
More information about the cairo
mailing list