c++ - Installed freetype through homebrew, can't seem to include headers correctly -
on xcode project, added dylib of freetype project link binary phase.
i ensure /usr/local/include , /usr/local/lib in search paths in build settings.
i include:
#include <freetype2/ft2build.h> #include ft_freetype_h but error freetype.h not found. ideas? tried including <freetype2/freetype.h> directly, leads more compile problems include paths in other freetype files.
looking @ demo programs in "freetype2-demos", see:
#include <ft2build.h> #include ft_freetype_h also, think need compiler command-line include -i (path freetype includes).
for example...
g++ -i (...)/freetype2 myfile.cpp here instructions. suggestion there compile like...
g++ $(freetype-config --cflags) myfile.cpp ...which, if system configured correctly, incorporate -i option mentioned.
Comments
Post a Comment