编译fontconfig时,需要freetype。吾专门下载了freetype并编译安装,结果还是报错。原因是要配置PKG_CONFIG_PATH:


export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

./configure \
    CFLAGS="-I/usr/local/include -I/usr/local/include/freetype2" \
    --enable-shared \
    --enable-libxml2