[Techtalk] compile error.
akkana at shallowsky.com
Mon Feb 7 15:58:29 EST 2005
> I get the following error from the make of fontconfig 2.2.2
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2
> /local/etc/fonts\" -I.. -I../src -g -O2 -MT fcfreetype.lo -MD -MP -MF
> ype.Tpo -c fcfreetype.c -fPIC -DPIC -o .libs/fcfreetype.o
> fcfreetype.c: In function `FcFreeTypeQuery':
> fcfreetype.c:280: `PS_FontInfoRec' undeclared (first use in this function)
> fcfreetype.c:280: (Each undeclared identifier is reported only once
> fcfreetype.c:280: for each function it appears in.)
> fcfreetype.c:280: parse error before `psfontinfo'
> fcfreetype.c:739: `psfontinfo' undeclared (first use in this function)
> make: *** [fcfreetype.lo] Error 1
> make: Leaving directory `/tmp/fontconfig-2.2.2/src'
> make: *** [all-recursive] Error 1
> make: Leaving directory `/tmp/fontconfig-2.2.2'
> make: *** [all] Error 2
On my system (debian unstable), PS_FontInfoRec is defined in
/usr/include/freetype2/freetype/t1tables.h which is part of the
package called "libfreetype6-dev".
It looks like gcc is expecting to find the freetype include files
in /usr/include/freetype2 on your system, just like on mine.
So it sounds like freetype2 is what it's missing. Do you have
a /usr/include/freetype2 directory? If you built freetype2 from
source, then possibly it's in /usr/local/include or somewhere
But I wonder why fontconfig's configure program didn't
notice that there were no freetype include files?
Ideally, problems like this should be caught by configure,
before you run make, but unfortunately a lot of times configure
isn't set up to be as smart as it ought to be.
More information about the Techtalk