chaoticbob / Cinder-SdfText

libcinder.org
SIL Open Font License 1.1
40 stars 20 forks source link

'ft2build.h' file not found #22

Open drewish opened 7 years ago

drewish commented 7 years ago

Running into this error on OS X:

CompileC /Users/andrew/Library/Developer/Xcode/DerivedData/Cinder-SdfText-ckvvprrqdidxdacgbmjvneplksvf/Build/Intermediates/Cinder-SdfText.build/Debug/cinder-sdftext-macosx.build/Objects-normal/x86_64/ftlcdfil.o /Users/andrew/projects/Cinder/src/freetype/base/ftlcdfil.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/andrew/projects/Cinder/blocks/Cinder-SdfText/xcode
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -Wno-sign-conversion -Wno-infinite-recursion -iquote /Users/andrew/Library/Developer/Xcode/DerivedData/Cinder-SdfText-ckvvprrqdidxdacgbmjvneplksvf/Build/Intermediates/Cinder-SdfText.build/Debug/cinder-sdftext-macosx.build/cinder-sdftext-generated-files.hmap -I/Users/andrew/Library/Developer/Xcode/DerivedData/Cinder-SdfText-ckvvprrqdidxdacgbmjvneplksvf/Build/Intermediates/Cinder-SdfText.build/Debug/cinder-sdftext-macosx.build/cinder-sdftext-own-target-headers.hmap -I/Users/andrew/Library/Developer/Xcode/DerivedData/Cinder-SdfText-ckvvprrqdidxdacgbmjvneplksvf/Build/Intermediates/Cinder-SdfText.build/Debug/cinder-sdftext-macosx.build/cinder-sdftext-all-target-headers.hmap -iquote /Users/andrew/Library/Developer/Xcode/DerivedData/Cinder-SdfText-ckvvprrqdidxdacgbmjvneplksvf/Build/Intermediates/Cinder-SdfText.build/Debug/cinder-sdftext-macosx.build/cinder-sdftext-project-headers.hmap -iquote../../../include -iquote../include -I/Users/andrew/projects/Cinder/blocks/Cinder-SdfText/lib/macosx/Debug/include -I../../../include -I../include -I/Users/andrew/Library/Developer/Xcode/DerivedData/Cinder-SdfText-ckvvprrqdidxdacgbmjvneplksvf/Build/Intermediates/Cinder-SdfText.build/Debug/cinder-sdftext-macosx.build/DerivedSources/x86_64 -I/Users/andrew/Library/Developer/Xcode/DerivedData/Cinder-SdfText-ckvvprrqdidxdacgbmjvneplksvf/Build/Intermediates/Cinder-SdfText.build/Debug/cinder-sdftext-macosx.build/DerivedSources -F/Users/andrew/projects/Cinder/blocks/Cinder-SdfText/lib/macosx/Debug -DFT2_BUILD_LIBRARY -MMD -MT dependencies -MF /Users/andrew/Library/Developer/Xcode/DerivedData/Cinder-SdfText-ckvvprrqdidxdacgbmjvneplksvf/Build/Intermediates/Cinder-SdfText.build/Debug/cinder-sdftext-macosx.build/Objects-normal/x86_64/ftlcdfil.d --serialize-diagnostics /Users/andrew/Library/Developer/Xcode/DerivedData/Cinder-SdfText-ckvvprrqdidxdacgbmjvneplksvf/Build/Intermediates/Cinder-SdfText.build/Debug/cinder-sdftext-macosx.build/Objects-normal/x86_64/ftlcdfil.dia -c /Users/andrew/projects/Cinder/src/freetype/base/ftlcdfil.c -o /Users/andrew/Library/Developer/Xcode/DerivedData/Cinder-SdfText-ckvvprrqdidxdacgbmjvneplksvf/Build/Intermediates/Cinder-SdfText.build/Debug/cinder-sdftext-macosx.build/Objects-normal/x86_64/ftlcdfil.o

/Users/andrew/projects/Cinder/src/freetype/base/ftlcdfil.c:19:10: fatal error: 'ft2build.h' file not found
#include <ft2build.h>
         ^
1 error generated.

I've got freetype2 installed via homebrew so I'm not sure if that's conflicting somehow?

drewish commented 7 years ago

Oh so I just realized it's trying to build against Cinder's copy of freetype and since I'm using the master branch it looks like there are some additions/removals upstream.