[Perl]Can't link/include C library 'ft2build.h', 'freetype', aborting.

原文:http://www.code-by.org/viewtopic.php?f=60&t=284

错误提示

Font-FreeType-0.07>perl Makefile.PL
Build config: default
Build flag LIB: -lfreetype
Build flag INC: -I/usr/include/freetype2
Can't link/include C library 'ft2build.h', 'freetype', aborting.

解决方法:

找到

$config->{default}{INC} = '-I/usr/include/freetype2';


改为

$config->{default}{INC} = '-IC:/Strawberry/c/include/freetype2';


然后
> perl Makefile.PL
> dmake
> dmake install
posted @ 2017-05-15 09:39  vicyang  阅读(652)  评论(0编辑  收藏  举报