Re: pango include files



On Tue, Mar 02, 2004 at 10:58:55AM +0100, Sven Neumann wrote:
> Hi,
> 
> Dave Kuhlman <dkuhlman cutter rexx com> writes:
> 
> > I'm having problems compiling pango.  The error messages seem to be
> > telling me that I need to change pango source code.  But, I'm
> > guessing there is something I've set up incorrectly.  Here are the
> > error messages:
> > 
> >      gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -DG_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include -I../.. -g -O2 -Wall -c pango-ot-info.c  -fPIC -DPIC -o .libs/pango-ot-info.o
> >     In file included from pango-ot-private.h:25,
> >                      from pango-ot-info.c:22:
> >     /usr/local/include/freetype2/freetype/freetype.h:20:2: #error "t2build.h' hasn't been included yet!"
> >     /usr/local/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files."
> >     /usr/local/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
> >     /usr/local/include/freetype2/freetype/freetype.h:23:2: #error "  #include <ft2build.h>"
> >     /usr/local/include/freetype2/freetype/freetype.h:24:2: #error "  #include FT_FREETYPE_H"
> >     pango-ot-info.c:25:31: freetype/ftmodule.h: No such file or directory
> >     make[3]: *** [pango-ot-info.lo] Error 1
> >     make[3]: Leaving directory /w1/Source/Gtk2/pango-1.2.4/pango/opentype'
> > 
> > Is there some additional flag I need to set?  Or is there a
> > different version of freetype that I need to install?
> 
> The Freetype project did some changes to their header files that break
> old versions of Pango (and a lot of other libraries and apps using
> freetype). IIRC, this is fixed in Pango-1.2.5. See also bug #125548.

Sven -

I found the bug report (#125548 in Bugzilla) with a comment on how
to fix the problem in pango.  I'm building pango-1.2.5.  The
problem is still in that version apparently, so I had to patch
changes into the source code.  Perhaps the CVS version is fixed.

The fix was to add the following lines to .c files that caused to
problem:

    #include <ft2build.h>
    #include FT_FREETYPE_H

which I had tried earlier, but had not done correctly.

Thanks to your help, I was able to build glib, pango, atk, and
GTK+-2.2.

Thanks again.

Dave

-- 
Dave Kuhlman
dkuhlman rexx com
http://www.rexx.com/~dkuhlman



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]