下载
https://sourceforge.net/projects/freetype/files/freetype2
解压
图。
修改
打开ft2build.h,加上:
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <math.h>
编译
# 注意不要运行 autogen.sh ./configure make make install
产生的库文件是libfreetype.dylib
如果提示缺少头文件: