Skip to content
This repository has been archived by the owner on Mar 30, 2020. It is now read-only.

Failed build: fatal error: ft2build.h: No such file or directory #include <ft2build.h> #11

Closed
lord2800 opened this issue Dec 28, 2013 · 7 comments

Comments

@lord2800
Copy link

[ 57%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/ext/gd/libgd/gdhelpers.cpp.o
In file included from /tmp/hhvm-Crkl/hphp/runtime/ext/gd/libgd/gdft.cpp:65:0:
/usr/X11R6/include/freetype2/freetype/freetype.h:32:22: fatal error: ft2build.h: No such file or directory
 #include <ft2build.h>
                      ^
compilation terminated.
make[2]: *** [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/ext/gd/libgd/gdft.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/all] Error 2
make: *** [all] Error 2
==> Formula
Tap: mcuadros/hhvm
Path: /usr/local/Library/Taps/mcuadros-hhvm/Formula/hhvm.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 99bcc5aa72fe37aaec3296e1460083d8b9f072bf
CPU: 8-core 64-bit ivybridge
OS X: 10.9.1-x86_64
Xcode: 5.0.2
CLT: 5.0.1.0.1.1382131676
X11: 2.7.5 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local/opt/gettext:/usr/local/opt/readline:/usr/local/opt/icu4c:/usr/local/opt/ncurses:/usr/local/opt/curl:/usr/local/opt/gmp4:/usr/local/opt/mpfr2:/usr/local/opt/libmpc08:/usr/local/opt/isl011:/usr/local/opt/cloog018:/usr/local/opt/jemallocfb:/usr/local/opt/libarchive:/usr/local/opt/libeventfb:/usr/local/opt/boostfb:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers:/System/Library/Frameworks/Python.framework/Versions/2.7/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/gflags/lib/pkgconfig:/usr/local/opt/glog/lib/pkgconfig:/usr/local/opt/oniguruma/lib/pkgconfig:/usr/local/opt/libelf/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/gd/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libevent/lib/pkgconfig:/usr/local/opt/libmemcached/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig:/usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/isl011/lib/pkgconfig:/usr/local/opt/cloog018/lib/pkgconfig:/usr/local/opt/libarchive/lib/pkgconfig:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9
HOMEBREW_VERBOSE: 1
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/opt/curl/share/aclocal:/usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/cmake/bin:/usr/local/opt/libtool/bin:/usr/local/opt/autoconf/bin:/usr/local/opt/automake/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/gettext/bin:/usr/local/opt/mcrypt/bin:/usr/local/opt/gflags/bin:/usr/local/opt/oniguruma/bin:/usr/local/opt/re2c/bin:/usr/local/opt/pcre/bin:/usr/local/opt/libpng/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/gd/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/libevent/bin:/usr/local/opt/memcached/bin:/usr/local/opt/libmemcached/bin:/usr/local/opt/freetype/bin:/usr/local/opt/imagemagick/bin:/usr/local/opt/binutils/bin:/usr/local/opt/ncurses/bin:/usr/local/opt/curl/bin:/usr/local/opt/imap-uw/bin:/usr/local/opt/cloog018/bin:/usr/local/opt/gcc48/bin:/usr/local/opt/jemallocfb/bin:/usr/local/opt/libarchive/bin:/usr/local/opt/libeventfb/bin:/usr/local/opt/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

This happens consistently. I've uninstalled and reinstalled freetype2, as well as tried moving the specified header into the same directory the other header is in (out of desperation).

Let me know if you need any more info.

@mcuadros
Copy link
Owner

Can you execute and give the result of:

brew --config
brew install hhvm --debug --verbose

Regards

@lord2800
Copy link
Author

Strange... I changed absolutely nothing about my setup, and now it succeeded. Sorry!

@cursedcoder
Copy link

When I used

brew --config
brew install hhvm --debug --verbose

it worked.

@tommygnr
Copy link

tommygnr commented Feb 4, 2014

I am encountering this bug now. I tried:

brew --config
brew install hhvm --debug --verbose

to no avail. There is a more detailed explanation of the problem here: facebook/hhvm#1580

@smoya
Copy link

smoya commented Feb 11, 2014

I fixed this problem removing the links that @evert said in this issue facebook/hhvm#1580.

Thanks.

@tommygnr
Copy link

@smoya Did you remove xQuartz altogether or just the symlink?
Does removing the symlink break xquartz?

I got around this by uninstalling xquartz but that doesn't seem like a sustainable solution

@smoya
Copy link

smoya commented Feb 11, 2014

I only removed the symlinks. Xquartz seems run OK for me!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants