linux-bnw:/home/soft/libpng-1.2.18 # cp scripts/makefile.std makefile
linux-bnw:/home/soft/libpng-1.2.18 # make
cc -I../zlib -O    -c -o png.o png.c
在包含自 png.c:13 的文件中:
png.h:398:18: 错误:zlib.h:没有那个文件或目录
In file included from png.h:402,
                 from png.c:13:
pngconf.h:1221: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pngconf.h:1222: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pngconf.h:1223: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from png.c:13:
png.h:1148: 错误:expected specifier-qualifier-list before ‘z_stream’
png.h:2929: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘png_zalloc’
png.h:2932: 错误:expected ‘)’ before ‘png_ptr’
png.c: 在函数‘png_set_sig_bytes’中:
png.c:105: 错误:‘png_struct’没有名为‘sig_bytes’的成员
png.c: 在文件层:
png.c:154: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘png_zalloc’
png.c:197: 错误:expected ‘)’ before ‘png_ptr’
png.c: 在函数‘png_reset_crc’中:
png.c:208: 错误:‘png_struct’没有名为‘crc’的成员
png.c:208: 错误:‘Z_NULL’未声明(在此函数内第一次使用)
png.c:208: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
png.c:208: 错误:所在的函数内也只报告一次。)
png.c: 在函数‘png_calculate_crc’中:
png.c:221: 错误:‘png_struct’没有名为‘chunk_name’的成员
png.c:234: 错误:‘png_struct’没有名为‘crc’的成员
png.c:234: 错误:‘png_struct’没有名为‘crc’的成员
png.c:234: 错误:‘uInt’未声明(在此函数内第一次使用)
png.c:234: 错误:expected ‘)’ before ‘length’
png.c: 在函数‘png_create_info_struct’中:
png.c:252: 错误:‘png_struct’没有名为‘malloc_fn’的成员
png.c:252: 错误:‘png_struct’没有名为‘mem_ptr’的成员
png.c: 在函数‘png_destroy_info_struct’中:
png.c:282: 错误:‘png_struct’没有名为‘free_fn’的成员
png.c:283: 错误:‘png_struct’没有名为‘mem_ptr’的成员
png.c: 在函数‘png_free_data’中:
png.c:493: 错误:‘png_struct’没有名为‘unknown_chunk’的成员
png.c:495: 错误:‘png_struct’没有名为‘unknown_chunk’的成员
png.c:496: 错误:‘png_struct’没有名为‘unknown_chunk’的成员
png.c: 在函数‘png_info_destroy’中:
png.c:605: 错误:‘png_struct’没有名为‘num_chunk_list’的成员
png.c:607: 错误:‘png_struct’没有名为‘chunk_list’的成员
png.c:608: 错误:‘png_struct’没有名为‘chunk_list’的成员
png.c:609: 错误:‘png_struct’没有名为‘num_chunk_list’的成员
png.c: 在函数‘png_convert_to_rfc1123’中:
png.c:657: 错误:‘png_struct’没有名为‘time_buffer’的成员
png.c:659: 错误:‘png_struct’没有名为‘time_buffer’的成员
png.c:685: 错误:‘png_struct’没有名为‘time_buffer’的成员
png.c:691: 错误:‘png_struct’没有名为‘time_buffer’的成员
png.c: 在函数‘png_handle_as_unknown’中:
png.c:759: 错误:‘png_struct’没有名为‘num_chunk_list’的成员
png.c:761: 错误:‘png_struct’没有名为‘chunk_list’的成员
png.c:761: 错误:‘png_struct’没有名为‘num_chunk_list’的成员
png.c:762: 错误:‘png_struct’没有名为‘num_chunk_list’的成员
png.c: 在函数‘png_reset_zstream’中:
png.c:773: 错误:‘Z_STREAM_ERROR’未声明(在此函数内第一次使用)
png.c:774: 错误:‘png_struct’没有名为‘zstream’的成员
png.c: 在函数‘png_init_mmx_flags’中:
png.c:795: 错误:‘png_struct’没有名为‘mmx_rowbytes_threshold’的成员
png.c:796: 错误:‘png_struct’没有名为‘mmx_bitdepth_threshold’的成员
png.c:800: 错误:‘png_struct’没有名为‘asm_flags’的成员
png.c:803: 错误:‘png_struct’没有名为‘asm_flags’的成员
png.c:818: 错误:‘png_struct’没有名为‘mmx_rowbytes_threshold’的成员
png.c:819: 错误:‘png_struct’没有名为‘mmx_bitdepth_threshold’的成员
png.c:822: 错误:‘png_struct’没有名为‘asm_flags’的成员
make: *** [png.o] 错误 1
linux-bnw:/home/soft/libpng-1.2.18 # rm -rf makefile
linux-bnw:/home/soft/libpng-1.2.18 # cp scripts/makefile.std makefile
linux-bnw:/home/soft/libpng-1.2.18 # make
cc -I../zlib -O    -c -o png.o png.c
在包含自 png.c:13 的文件中:
png.h:398:18: 错误:zlib.h:没有那个文件或目录
In file included from png.h:402,
                 from png.c:13:
pngconf.h:1221: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pngconf.h:1222: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
pngconf.h:1223: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from png.c:13:
png.h:1148: 错误:expected specifier-qualifier-list before ‘z_stream’
png.h:2929: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘png_zalloc’
png.h:2932: 错误:expected ‘)’ before ‘png_ptr’
png.c: 在函数‘png_set_sig_bytes’中:
png.c:105: 错误:‘png_struct’没有名为‘sig_bytes’的成员
png.c: 在文件层:
png.c:154: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘png_zalloc’
png.c:197: 错误:expected ‘)’ before ‘png_ptr’
png.c: 在函数‘png_reset_crc’中:
png.c:208: 错误:‘png_struct’没有名为‘crc’的成员
png.c:208: 错误:‘Z_NULL’未声明(在此函数内第一次使用)
png.c:208: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
png.c:208: 错误:所在的函数内也只报告一次。)
png.c: 在函数‘png_calculate_crc’中:
png.c:221: 错误:‘png_struct’没有名为‘chunk_name’的成员
png.c:234: 错误:‘png_struct’没有名为‘crc’的成员
png.c:234: 错误:‘png_struct’没有名为‘crc’的成员
png.c:234: 错误:‘uInt’未声明(在此函数内第一次使用)
png.c:234: 错误:expected ‘)’ before ‘length’
png.c: 在函数‘png_create_info_struct’中:
png.c:252: 错误:‘png_struct’没有名为‘malloc_fn’的成员
png.c:252: 错误:‘png_struct’没有名为‘mem_ptr’的成员
png.c: 在函数‘png_destroy_info_struct’中:
png.c:282: 错误:‘png_struct’没有名为‘free_fn’的成员
png.c:283: 错误:‘png_struct’没有名为‘mem_ptr’的成员
png.c: 在函数‘png_free_data’中:
png.c:493: 错误:‘png_struct’没有名为‘unknown_chunk’的成员
png.c:495: 错误:‘png_struct’没有名为‘unknown_chunk’的成员
png.c:496: 错误:‘png_struct’没有名为‘unknown_chunk’的成员
png.c: 在函数‘png_info_destroy’中:
png.c:605: 错误:‘png_struct’没有名为‘num_chunk_list’的成员
png.c:607: 错误:‘png_struct’没有名为‘chunk_list’的成员
png.c:608: 错误:‘png_struct’没有名为‘chunk_list’的成员
png.c:609: 错误:‘png_struct’没有名为‘num_chunk_list’的成员
png.c: 在函数‘png_convert_to_rfc1123’中:
png.c:657: 错误:‘png_struct’没有名为‘time_buffer’的成员
png.c:659: 错误:‘png_struct’没有名为‘time_buffer’的成员
png.c:685: 错误:‘png_struct’没有名为‘time_buffer’的成员
png.c:691: 错误:‘png_struct’没有名为‘time_buffer’的成员
png.c: 在函数‘png_handle_as_unknown’中:
png.c:759: 错误:‘png_struct’没有名为‘num_chunk_list’的成员
png.c:761: 错误:‘png_struct’没有名为‘chunk_list’的成员
png.c:761: 错误:‘png_struct’没有名为‘num_chunk_list’的成员
png.c:762: 错误:‘png_struct’没有名为‘num_chunk_list’的成员
png.c: 在函数‘png_reset_zstream’中:
png.c:773: 错误:‘Z_STREAM_ERROR’未声明(在此函数内第一次使用)
png.c:774: 错误:‘png_struct’没有名为‘zstream’的成员
png.c: 在函数‘png_init_mmx_flags’中:
png.c:795: 错误:‘png_struct’没有名为‘mmx_rowbytes_threshold’的成员
png.c:796: 错误:‘png_struct’没有名为‘mmx_bitdepth_threshold’的成员
png.c:800: 错误:‘png_struct’没有名为‘asm_flags’的成员
png.c:803: 错误:‘png_struct’没有名为‘asm_flags’的成员
png.c:818: 错误:‘png_struct’没有名为‘mmx_rowbytes_threshold’的成员
png.c:819: 错误:‘png_struct’没有名为‘mmx_bitdepth_threshold’的成员
png.c:822: 错误:‘png_struct’没有名为‘asm_flags’的成员
make: *** [png.o] 错误 1
分不是很多 敬请原谅