- 下載下傳
- 解壓
圖。
- 修改
打開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
如果提示缺少頭檔案:
https://blog.csdn.net/quantum7/article/details/108466760