Bug 84970

Summary: 0.9.35 but Makefile doesn't have freetype2 in FREETYPE_CFLAGS
Product: HarfBuzz Reporter: Greg Jung <gvjung>
Component: srcAssignee: Behdad Esfahbod <freedesktop>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: medium CC: freedesktop
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Greg Jung 2014-10-13 21:58:40 UTC
make.out:
make[2]: Entering directory `/mingw/sources/harfbuzz-0.9.35/src'
  GEN      hb-gobject-enums.cc
  GEN      hb-gobject-enums.h
make  all-recursive
make[3]: Entering directory `/mingw/sources/harfbuzz-0.9.35/src'
make[4]: Entering directory `/mingw/sources/harfbuzz-0.9.35/src'
  CXX      libharfbuzz_la-hb-blob.lo
  CXX      libharfbuzz_la-hb-buffer-serialize.lo
  CXX      libharfbuzz_la-hb-buffer.lo
   .... etc.
  CXX      libharfbuzz_la-hb-glib.lo
  CXX      libharfbuzz_la-hb-ft.lo
In file included from hb-ft.cc:30:0:
hb-ft.h:32:22: fatal error: ft2build.h: No such file or directory
 #include <ft2build.h>
                      ^
compilation terminated.
make[4]: *** [libharfbuzz_la-hb-ft.lo] Error 1

because in Makfiles it says, 
FREETYPE_CFLAGS = -IE:/MinGW/local32/include

where it needed to be = -IE:/MinGW/local32/include/freetype2
(which it correctly put in the CAIRO_FT_CFLAGS)
to patch this in current build, correct FREETYPE_CFLAGS in the following:
Makefile
src/Makefile
test/api/Makefile
Comment 1 Behdad Esfahbod 2014-10-13 23:25:12 UTC
How are you configuring?  This sure is working for everyone else.
Comment 2 Greg Jung 2014-10-14 14:48:14 UTC
(In reply to Behdad Esfahbod from comment #1)
> How are you configuring?  This sure is working for everyone else.

maybe my freetype.pc isn't matching the installation:

Name: FreeType 2
Description: A free, high-quality, and portable font engine.
Version: 17.1.11
Requires:
Libs: -L${libdir} -lfreetype
Libs.private: -lz  -lpng16 
Cflags: -I${includedir}

greg@Homerw7 ~
$ ls -la /local32/include/ |grep ft
<nothing ftxxx>
greg@Homerw7 ~
$ ls -la /local32/include/freetype2 |grep ft
-rw-r--r--  1 greg Administrators   2383 Dec 14  2013 ft2build.h
 etc
Looks like the problem in the .pc file (includedir had no freetype2)

Here I've now installed the new (harfbuzz-dependant!) freetype and get, correctly
FREETYPE_CFLAGS = -I/local32/include/freetype2 -IE:/MinGW/local32/include/libpng16 -IE:/MinGW/local32/include/harfbuzz
FREETYPE_LIBS = -L/local32/lib -lfreetype
Comment 3 Behdad Esfahbod 2014-10-14 20:15:06 UTC
Thanks.

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.