如何编译“改进的pngnq”?

时间:2011-07-05 09:58:38

标签: makefile compiler-errors

Improved pngnq源存档没有makefile(解压时要小心,没有顶级目录)。

如何在openSUSE 11.4上编译它?安装了libpng / zlib头文件和通常的C工具链。

pngnq$ gcc *.c
pngcomp.c: In function ‘main’:
pngcomp.c:111:37: error: ‘VERSION’ undeclared (first use in this function)
pngcomp.c:111:37: note: each undeclared identifier is reported only once for each function it appears in
rwpng.c: In function ‘rwpng_read_image’:
rwpng.c:130:7: warning: passing argument 3 of ‘png_get_IHDR’ from incompatible pointer type
/usr/include/png.h:2300:1: note: expected ‘png_uint_32 *’ but argument is of type ‘ulg *’
rwpng.c:130:7: warning: passing argument 4 of ‘png_get_IHDR’ from incompatible pointer type
/usr/include/png.h:2300:1: note: expected ‘png_uint_32 *’ but argument is of type ‘ulg *’

1 个答案:

答案 0 :(得分:1)

您是否可以使用sourceforge处的版本?它似乎是一个更新的版本,包括评论:

  

包括porneL

所做的改进

谁是您引用的页面上的更改的作者。