[cairo] Bug in freetype2 pkg-config requirement
Igor Foox
ifoox at redhat.com
Mon Aug 29 07:06:14 PDT 2005
On Sun, 2005-08-28 at 10:55 -0400, Owen Taylor wrote:
> On Fri, 2005-08-26 at 19:32 -0400, Igor Foox wrote:
> > Hi there,
> >
> > I've built cairo-1.0.0, and then tried to build gtk-2.8.0 on top of it.
> > In the process I discovered what looks like a bug in the cairo.pc.in
> > file. The way it is now, the freetype2 CFLAGS dependency does not get
> > generated. I've attached a fix that I made locally to address the
> > problem.
>
> Can you be more specific about the problem you ran into building GTK+?
Actually the problem was with pango. Unfortunately I don't have the
error trace available. But essentially the build couldn't find
ft2build.h, which was needed by the cairo backend. However since cairo
didn't indicate that it's CFlags depended on freetype2 then some gcc
line in the pango make file didn't have the appropriate -I for freefont.
Thanks,
Igor
> It should not be depending on getting FreeType or fontconfig cflags
> from Cairo.
>
> There have been proposals to add a separate cairo-ft.pc as a convenience
> to give the CFlags and *libs* you need to use the functions in
> cairo-ft.h. Just the CFlags aren't enough: to make use of the functions
> in cairo-ft.h your program will also need to use fontconfig and/or
> FreeType functions, and as such needs to link against these libraries
> directly.
>
> Regards,
> Owen
More information about the cairo
mailing list