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