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

I try to install the "ROOT" program ( http://root.cern.ch/drupal/content/installing-root-source ) with 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 already has ft2build.h:

    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 make the installation find ft2build.h?

+3
source share
3 answers

, PyROOT ROOT. . /configure... , freestyle-config , . , Python, ft2build.h , ROOT.

root-config, , make , /opt/local/include. :

./configure macosx64 --enable-python --with-python-incdir = $PYTHONDIR/include --with-python-libdir = $PYTHONDIR/lib - enable-builtin-freetype

-I, (ft2build.h - , ROOT )

, python, , ( ).

, !

+2
brew install freetype --with-freetype-dir=/usr/local/Cellar/freetype
+2

Add a path to the headers in the clang enable path using the parameter -I: clang++ ... -I/opt/local/include ...for example.

Then you will probably get communication errors - use the parameter -L.

0
source

All Articles