Re: Bug in libsvg-cairo-0.1.6: svg-cairo.h has incorrect path for cairo.h

John Ellson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.