开发者

How to compile "Improved pngnq"?

The Improved pngnq so开发者_C百科urce archive does not come with a makefile (careful when unpacking, there is no top level directory).

How do I compile it on openSUSE 11.4? libpng/zlib headers and the usual C toolchain are installed.

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 *’


Are you able to use the version at sourceforge? It appears to be a more recent version and includes the comment:

includes improvements made by porneL

who is the author of the changes at the page you reference.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜