编译gd 时出现png.h: No such file or directory

来源:互联网 发布:python tcp 长连接 编辑:程序博客网 时间:2024/06/06 09:07

原因是找不到png.h的文件,根本原因应该是在安装png的时候,在编译的时候没有加--enable-shared这样的参数

 

(1)找到你的png.h的位置           

(2)vim gd_png.c

(3)在gd_png.c中找到png.h的地方,有一个inclde<png.h>,改变成你的png的具体位置就可以了。

Locations of visitors to this page

统计

原创粉丝点击