Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSX 10.7.5: fatal error: 'ft2build.h' file not found

Tags:

macos

I am trying to install a program called "ROOT" (http://root.cern.ch/drupal/content/installing-root-source) using the "make" command, but I get the following error:

clang++ -O2 -m64 -pipe -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -pthread -I/Users/builder/pisi-64bit/tmp/freetype-2.4.4-1/install/include/freetype2 -I/Users/builder/pisi-64bit/tmp/freetype-2.4.4-1/install/include -o graf2d/graf/src/TMathText.o -c /Users/alex/root/graf2d/graf/src/TMathText.cxx
    /Users/alex/root/graf2d/graf/src/TMathText.cxx:15:12: fatal error:
    'ft2build.h' file not found

however, I checked and my system has the ft2build.h already:

    locate ft2build.h
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/ft2build.h
    /opt/X11/include/ft2build.h
    /opt/local/include/ft2build.h
    /usr/X11/include/ft2build.h

How can I do so that the installation can find the ft2build.h file?

like image 842
algior Avatar asked May 30 '13 00:05

algior


1 Answers

brew install freetype --with-freetype-dir=/usr/local/Cellar/freetype
like image 140
ganchan Avatar answered Sep 21 '22 05:09

ganchan