Bug 7551

Summary: ft2build.h: No such file or directory
Product: cairo Reporter: Santosh <sankulka>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED NOTOURBUG QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: blocker    
Priority: high    
Version: 1.2.0   
Hardware: SPARC   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:
Attachments: Log file after ./configure

Description Santosh 2006-07-17 05:24:13 UTC
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'
Comment 1 Behdad Esfahbod 2006-07-17 11:54:29 UTC
Seems like a problem with your freetype installation.  What do the following
commands write out:

pkg-config --cflags freetype2

freetype-config --cflags
Comment 2 Santosh 2006-07-17 23:18:39 UTC
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
Comment 3 Santosh 2006-07-17 23:28:02 UTC
Created attachment 6251 [details]
Log file after ./configure
Comment 4 Behdad Esfahbod 2006-07-18 12:18:10 UTC
*** Bug 7552 has been marked as a duplicate of this bug. ***
Comment 5 Santosh 2006-07-23 22:48:46 UTC
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
Comment 6 Behdad Esfahbod 2006-07-24 10:39:04 UTC
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.