Skip to contentSkip to conversation

fontconfig fails using latest snapshot

Buildroot Christopher Reder 3 participants 4 messages Aug 13, 2007

lore
Share & tools
lore
#0 lore raw
linuxbox:/home/christopher/sb/buildroot# make fontconfig

<snip>

make[3]: Entering directory `/home/christopher/sb/buildroot/build_arm/fontconfig-2.4.2/fc-case'

/usr/bin/make all-am

make[4]: Entering directory `/home/christopher/sb/buildroot/build_arm/fontconfig-2.4.2/fc-case'

/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I.. -Wall -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fno-strict-aliasing -MT fc-case.o -MD -MP -MF .deps/fc-case.Tpo -c -o fc-case.o fc-case.c

In file included from ../fontconfig/fcfreetype.h:27,

                 from ../src/fcint.h:50,

                 from fc-case.c:25:

/usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory

In file included from ../src/fcint.h:50,

                 from fc-case.c:25:

../fontconfig/fcfreetype.h:28:10: error: #include expects "FILENAME" or <FILENAME>

In file included from ../src/fcint.h:50,

                 from fc-case.c:25:

../fontconfig/fcfreetype.h:37: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?FcFreeTypeCharIndex?

../fontconfig/fcfreetype.h:40: error: expected ?)? before ?face?

../fontconfig/fcfreetype.h:43: error: expected ?)? before ?face?

../fontconfig/fcfreetype.h:46: error: expected declaration specifiers or ?...? before ?FT_Face?

../fontconfig/fcfreetype.h:49: warning: type defaults to ?int? in declaration of ?FT_Face?

../fontconfig/fcfreetype.h:49: error: expected ?;?, ?,? or ?)? before ?f?

../fontconfig/fcfreetype.h:52: warning: type defaults to ?int? in declaration of ?FT_Face?

../fontconfig/fcfreetype.h:52: error: expected ?;?, ?,? or ?)? before ?face?

In file included from fc-case.c:25:

../src/fcint.h:720: error: expected ?)? before ?encoding?

make[4]: *** [fc-case.o] Error 1

make[4]: Leaving directory `/home/christopher/sb/buildroot/build_arm/fontconfig-2.4.2/fc-case'

make[3]: *** [all] Error 2

make[3]: Leaving directory `/home/christopher/sb/buildroot/build_arm/fontconfig-2.4.2/fc-case'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/home/christopher/sb/buildroot/build_arm/fontconfig-2.4.2'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/christopher/sb/buildroot/build_arm/fontconfig-2.4.2'

make: *** [/home/christopher/sb/buildroot/build_arm/fontconfig-2.4.2/.compiled] Error 2

linuxbox:/home/christopher/sb/buildroot#

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070813/d82c05a5/attachment.htm

#1 lore raw
Quoted 3 lines
linuxbox:/home/christopher/sb/buildroot# make fontconfig
. <snip> .
/usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory

You need to build freetype2 before fontconfig.

Best Regards
Ulf Samuelsson

#2 lore raw

-----Original Message-----
From: Ulf Samuelsson [mailto:ulf at atmel.com]
Sent: Monday, August 13, 2007 10:52 AM
To: creder at digitalcpt.com; buildroot at uclibc.org
Subject: Re: [Buildroot] fontconfig fails using latest snapshot

Quoted 3 lines
linuxbox:/home/christopher/sb/buildroot# make fontconfig
. <snip> .
/usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such

file or directory

You need to build freetype2 before fontconfig.

Sorry as I think I sent the wrong output. I did end up going and building freetype and then fontconfig. I have attached the output below. It looks like it is using the native gcc to build this. Is that right? Also, it doesn't seem to like the CFLAGS or LDFLAGS. Do I have something not setup correctly for this to be using this gcc and not seeing these? This is latest as of this morning.

/usr/bin/gcc @CFLAGS_FOR_BUILD@ @LDFLAGS_FOR_BUILD@ -o fc-lang fc-lang.o
gcc: @CFLAGS_FOR_BUILD@: No such file or directory
gcc: @LDFLAGS_FOR_BUILD@: No such file or directory
make[4]: *** [fc-lang] Error 1
make[4]: Leaving directory `/home/christopher/sb/buildroot/build_arm/fontconfig-2.4.2/fc-lang' make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/christopher/sb/buildroot/build_arm/fontconfig-2.4.2/fc-lang' make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/christopher/sb/buildroot/build_arm/fontconfig-2.4.2' make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/christopher/sb/buildroot/build_arm/fontconfig-2.4.2'
make: *** [/home/christopher/sb/buildroot/build_arm/fontconfig-2.4.2/.compiled] Error 2
linuxbox:/home/christopher/sb/buildroot#

#3 lore raw
Quoted 5 lines · Christopher Reder
Quoted 1 line

/usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such

file or directory

You need to build freetype2 before fontconfig.

If that is the case, then someone should patch the 'fontconfig' make file to satisfy the dependency.

-Steve