Hi, I am trying to build and install Cairo1.2.0 on sparc Solaris OS 5.10. While doing "make", I get following error for include files. Also, I couldn't find ft2build.h on my machine. Can you please give me quick fix/solution/workaround to get rid of this build error ? Thanx in advance. Regards, Santosh gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../pixman/src -I/usr/openwin/include -I/usr/openwin/include -I/usr/include/libpng12 -I/usr/sfw/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -g -O2 -c cairo-ft-font.c -Wp,-MD,.deps/cairo-ft-font.TPlo -fPIC -DPIC -o .libs/cairo-ft-font.o In file included from cairo-ft-private.h:40, from cairo-ft-font.c:42: cairo-ft.h:47: ft2build.h: No such file or directory cairo-ft.h:48: `#include' expects "FILENAME" or <FILENAME> In file included from cairo-ft-font.c:45: /usr/include/fontconfig/fcfreetype.h:27: ft2build.h: No such file or directory /usr/include/fontconfig/fcfreetype.h:28: `#include' expects "FILENAME" or <FILENAME> cairo-ft-font.c:47: ft2build.h: No such file or directory cairo-ft-font.c:48: `#include' expects "FILENAME" or <FILENAME> cairo-ft-font.c:49: `#include' expects "FILENAME" or <FILENAME> cairo-ft-font.c:50: `#include' expects "FILENAME" or <FILENAME> cairo-ft-font.c:52: `#include' expects "FILENAME" or <FILENAME> *** Error code 1 make: Fatal error: Command failed for target `cairo-ft-font.lo' Current working directory /usr2/sankulka/DownLoads/XX/cairo-1.2.0/src *** Error code 1 make: Fatal error: Command failed for target `all' Current working directory /usr2/sankulka/DownLoads/XX/cairo-1.2.0/src *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='pixman src doc test'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' Current working directory /usr2/sankulka/DownLoads/XX/cairo-1.2.0 *** Error code 1 make: Fatal error: Command failed for target `all'
Seems like a problem with your freetype installation. What do the following commands write out: pkg-config --cflags freetype2 freetype-config --cflags
Thanx a lot..!! After checking include paths with pkg-config --cflags freetype2 and freetype-config --cflags, I have modified my $PATH and no longer getting the above error. But now, "make" is failing while linking the objects. I have attached "config.log" generated after ./configure. Please take a look at this and let me know any solution/fix so that "make" and "make install" should go smoothly. Regards, Santosh
Created attachment 6251 [details] Log file after ./configure
*** Bug 7552 has been marked as a duplicate of this bug. ***
This issue is really blocking me as I am not able to use GMF/Eclipse setup on my solaris box (since it needs cairo). I am upgrading the priority to "blocker". Please let me know if there is any work around for this issue. Thanx, Santosh
The priority/severity is used by cairo developers to plan bugs they wish to fix. Your problem is not a bug in cairo, but a build issue in your setup. I suggest you use jhbuild to correctly build your system.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.