[Fontconfig] Compilation Errors: please advice

Maximus john.maximus at gmail.com
Wed Jun 15 00:00:24 EST 2005


Hi,

    I want to build X windows, Gpe Package, GTK2.X for my arm processor.

 Now, I downloaded the following from freedesktop.

 Randr
 Render
 XExtensions
 FixesExt
 DamageExt
 Xproto
 xtrans
Xfont
 Xau
CompositeExt
 ResourceExt
 RecordExt
 Xdmcp
 XCalibrateExt
 X11
 Xext
 XRender
 XServer.

The compilation was succesful and i got Xserver.

I compiled pango:

configuration:
        backends: X

Now, i wanted to compile GTK.

Whenever i compile GTK. i got an error.

checking for freetype-config... 
configure: error: Xft Pango backend is required for x11 target

So, i compiled Xft 2.1.2 

I got the error :

creating libtool
checking for xrender >= 0.8.2... yes
checking XRENDER_CFLAGS... -D_XOPEN_SOURCE=500
-I/usr/local/arm/3.4.1/arm-linux/include
checking XRENDER_LIBS... -L/usr/local/arm/3.4.1/arm-linux/lib -lXrender
checking for freetype-config... freetype-config
checking for fontconfig >= 1.0.1... Package fontconfig was not found
in the pkg-config search path. Perhaps you should add the directory
containing `fontconfig.pc' to the PKG_CONFIG_PATH environment variable
No package 'fontconfig' found
configure: error: Library requirements (fontconfig >= 1.0.1) not met;
consider adjusting the PKG_CONFIG_PATH environment variable if your
libraries are in a nonstandard prefix so pkg-config can find them.

So, i thought i want fontconfig:

When i compiled fontconfig:

I get the error:

---------
 /usr/local/arm/3.4.1/bin/arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs
-fno-strict-aliasing
-DFONTCONFIG_PATH=\"/usr/local/arm/3.4.1/arm-linux/etc/fonts\" -I..
-I../src -I/usr/local/arm/3.4.1/arm-linux/include
-I/usr/local/arm/3.4.1/arm-linux/include -MT fcatomic.lo -MD -MP -MF
.deps/fcatomic.Tpo -c fcatomic.c  -fPIC -DPIC -o .libs/fcatomic.o
In file included from fcint.h:39,
                 from fcatomic.c:50:
../fontconfig/fcfreetype.h:27:22: ft2build.h: No such file or directory
../fontconfig/fcfreetype.h:28:10: #include expects "FILENAME" or <FILENAME>
In file included from fcint.h:39,
                 from fcatomic.c:50:
../fontconfig/fcfreetype.h:33: error: parse error before "FcFreeTypeCharIndex"
../fontconfig/fcfreetype.h:33: error: parse error before "face"
../fontconfig/fcfreetype.h:33: warning: type defaults to `int' in
declaration of `FcFreeTypeCharIndex'
../fontconfig/fcfreetype.h:33: warning: function declaration isn't a prototype
../fontconfig/fcfreetype.h:33: warning: data definition has no type or
storage class
../fontconfig/fcfreetype.h:36: error: parse error before "face"
../fontconfig/fcfreetype.h:36: warning: function declaration isn't a prototype
../fontconfig/fcfreetype.h:39: error: parse error before "face"
../fontconfig/fcfreetype.h:39: warning: function declaration isn't a prototype
../fontconfig/fcfreetype.h:42: error: parse error before "FT_Face"
../fontconfig/fcfreetype.h:42: warning: function declaration isn't a prototype
../fontconfig/fcfreetype.h:45: warning: type defaults to `int' in
declaration of `FT_Face'
../fontconfig/fcfreetype.h:45: error: parse error before "f"
../fontconfig/fcfreetype.h:45: warning: function declaration isn't a prototype
In file included from fcatomic.c:50:
fcint.h:596: error: parse error before "encoding"
fcint.h:596: warning: function declaration isn't a prototype
make[2]: *** [fcatomic.lo] Error 1
make[2]: Leaving directory `/home/user/gtk/dependencies/fontconfig-2.3.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/gtk/dependencies/fontconfig-2.3.2'
make: *** [all] Error 2


-----------

Please tell me what i should do ?. i am in total frustation.

I dont know from where this ft2build.h. i have one ft2build.h but it
is in /usr/include.

i dont want that header file. i am cross compiling and need to install
that package.

>From where should i get the sources and i want to put it in a
particular arm directory which contains only arm headers.

Please also let me know if i need any more packages and from where i
should get it.

Please do advice and let me know if i am in the wrong track.


Any help is appreciated.



Regards,
John



More information about the Fontconfig mailing list