Linking Freetype library to Xcode project -
i'm having trouble using freetype library in xcode project , have include @ top of code #include <ft2build.h>
; when build code, error 'ft2build.h' no such file or directory. had linked library 'libfreetype.dylib' , included following in 'other link flags' in build tab: '-l/usr/local/include/freetype2/'.
i'm quite new xcode, , appreciate here highlight i've missed.
many thanks, alex
the issue putting (the necessary) -i/usr/local/include/freetype2
flags in other linker flags , linker doesn't care include files.
instead modify header search path in build settings.
you need modify library search path well, in order pickup library.
avoid using other linker flags if can it.
Comments
Post a Comment