/usr/include/libpng12/pngconf.h:337: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'include' make: ***

/usr/include/libpng12/pngconf.h:337: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'include'
make: *** [/usr/src/freetype-2.5.0.1/objs/sfnt.lo] Error 1


在安装最新版freetype-2.5时,configure后报以上错误信息。

./configure --without-png
mmake
make install


 安装Freetyper时,加参数 without-png  

这样在./configure  就不会再出现以下的报错