• 8661阅读
  • 4回复

qvfb编译出错 [复制链接]

上一主题 下一主题
离线sakiola
 
只看楼主 正序阅读 楼主  发表于: 2009-07-10
root@ss-desktop:/home/ss/qt-x11-opensource-src-4.5.1/tools/qvfb# make
g++ -c -pipe -g -O2 -Wall -W -D_REENTRANT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include/QtGui -I../../include -I. -I. -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/qanimationwriter.o qanimationwriter.cpp
qanimationwriter.cpp:46:17: 错误: png.h:没有该文件或目录
qanimationwriter.cpp:74: 错误: ‘png_structp’没有命名一个类型
qanimationwriter.cpp:75: 错误: ‘png_infop’没有命名一个类型
qanimationwriter.cpp:107: 错误: ‘png_structp’未声明
qanimationwriter.cpp:107: 错误: ‘png_bytep’未声明
qanimationwriter.cpp:107: 错误: ‘png_size_t’未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::begin_png()’:
qanimationwriter.cpp:96: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:96: 错误: ‘PNG_LIBPNG_VER_STRING’在此作用域中尚未声明
qanimationwriter.cpp:96: 错误: ‘png_create_write_struct’在此作用域中尚未声明
qanimationwriter.cpp:97: 错误: ‘info_ptr’在此作用域中尚未声明
qanimationwriter.cpp:97: 错误: ‘png_create_info_struct’在此作用域中尚未声明
qanimationwriter.cpp:98: 错误: ‘png_set_compression_level’在此作用域中尚未声明
qanimationwriter.cpp:99: 错误: ‘png_set_write_fn’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::end_png()’:
qanimationwriter.cpp:104: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:104: 错误: ‘info_ptr’在此作用域中尚未声明
qanimationwriter.cpp:104: 错误: ‘png_destroy_write_struct’在此作用域中尚未声明
qanimationwriter.cpp: In static member function ‘static void QAnimationWriterMNG::write(int, int, int)’:
qanimationwriter.cpp:109: 错误: ‘png_get_io_ptr’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::writePNG(const QImage&)’:
qanimationwriter.cpp:118: 错误: ‘info_ptr’在此作用域中尚未声明
qanimationwriter.cpp:120: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:120: 错误: ‘png_set_sig_bytes’在此作用域中尚未声明
qanimationwriter.cpp:123: 错误: ‘PNG_COLOR_TYPE_RGB_ALPHA’在此作用域中尚未声明
qanimationwriter.cpp:123: 错误: ‘PNG_COLOR_TYPE_RGB’在此作用域中尚未声明
qanimationwriter.cpp:124: 错误: ‘png_set_IHDR’在此作用域中尚未声明
qanimationwriter.cpp:125: 错误: ‘png_write_info’在此作用域中尚未声明
qanimationwriter.cpp:129: 错误: ‘PNG_FILLER_BEFORE’在此作用域中尚未声明
qanimationwriter.cpp:129: 错误: ‘PNG_FILLER_AFTER’在此作用域中尚未声明
qanimationwriter.cpp:129: 错误: ‘png_set_filler’在此作用域中尚未声明
qanimationwriter.cpp:134: 错误: ‘png_set_bgr’在此作用域中尚未声明
qanimationwriter.cpp:138: 错误: ‘png_bytep’在此作用域中尚未声明
qanimationwriter.cpp:138: 错误: ‘row_pointers’在此作用域中尚未声明
qanimationwriter.cpp:138: 错误: expected type-specifier before ‘png_bytep’
qanimationwriter.cpp:138: 错误: expected `;' before ‘png_bytep’
qanimationwriter.cpp:140: 错误: expected `;' before ‘image’
qanimationwriter.cpp:141: 错误: ‘png_write_image’在此作用域中尚未声明
qanimationwriter.cpp:142: 错误: ‘delete’的参数类型应为指针而非‘<type error>’
qanimationwriter.cpp:143: 错误: ‘png_write_end’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::writeMHDR(const QSize&, int)’:
qanimationwriter.cpp:167: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:167: 错误: ‘png_byte’在此作用域中尚未声明
qanimationwriter.cpp:167: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:167: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:167: 错误: ‘png_write_chunk’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::writeMEND()’:
qanimationwriter.cpp:172: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:172: 错误: ‘png_byte’在此作用域中尚未声明
qanimationwriter.cpp:172: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:172: 错误: ‘png_write_chunk’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::writeDEFI(const QPoint&, const QSize&)’:
qanimationwriter.cpp:194: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:194: 错误: ‘png_byte’在此作用域中尚未声明
qanimationwriter.cpp:194: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:194: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:194: 错误: ‘png_write_chunk’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::writeFRAM(const QSize&)’:
qanimationwriter.cpp:226: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:226: 错误: ‘png_byte’在此作用域中尚未声明
qanimationwriter.cpp:226: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:226: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:226: 错误: ‘png_write_chunk’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::writeMOVE(const QPoint&)’:
qanimationwriter.cpp:240: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:240: 错误: ‘png_byte’在此作用域中尚未声明
qanimationwriter.cpp:240: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:240: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:240: 错误: ‘png_write_chunk’在此作用域中尚未声明
make: *** [.obj/release-shared/qanimationwriter.o] 错误 1



如上错误如何解决?
NB才是王道
离线styyzx

只看该作者 4楼 发表于: 2012-09-04
离线sakiola
只看该作者 3楼 发表于: 2009-07-14
才想起来来结贴 缺少的头文件都在qtx11 的tools同目录的src下
自己find到 放到/qvfb里去
再重新qmake -project.....
qmake
make之前修改Makefile
添加库 -lXtst
同时把之后出现的错误所指定的一个叫device什么的的cpp和.h文件也拷到qvfb目录去
OK
make搞定
具体步骤参见博文:http://blog.csdn.net/sakiola/archive/2009/07/13/4345187.aspx
NB才是王道
离线sakiola
只看该作者 2楼 发表于: 2009-07-10
崩溃中,哪位同仁指点~
NB才是王道
离线sakiola
只看该作者 1楼 发表于: 2009-07-10
补充:在.tools 的同级目录找到了src/3rdparty/libpng/png.h 不过放过去以后 再编译 出现更多错误
root@ss-desktop:/home/ss/qt-x11-opensource-src-4.5.1/tools/qvfb# make
g++ -c -pipe -g -O2 -Wall -W -D_REENTRANT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include/QtGui -I../../include -I. -I. -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/qanimationwriter.o qanimationwriter.cpp
在包含自 qanimationwriter.cpp:46 的文件中:
./png.h:440:18: 错误: zlib.h:没有该文件或目录
./png.h:444:21: 错误: pngconf.h:没有该文件或目录
In file included from qanimationwriter.cpp:46:
./png.h:552: 错误: ‘png_byte’没有命名一个类型
./png.h:553: 错误: ‘png_byte’没有命名一个类型
./png.h:554: 错误: ‘png_byte’没有命名一个类型
./png.h:556: 错误: expected initializer before ‘*’ token
./png.h:557: 错误: expected initializer before ‘*’ token
./png.h:561: 错误: ‘png_byte’没有命名一个类型
./png.h:562: 错误: ‘png_uint_16’没有命名一个类型
./png.h:563: 错误: ‘png_uint_16’没有命名一个类型
./png.h:564: 错误: ‘png_uint_16’没有命名一个类型
./png.h:565: 错误: ‘png_uint_16’没有命名一个类型
./png.h:567: 错误: expected initializer before ‘*’ token
./png.h:568: 错误: expected initializer before ‘*’ token
./png.h:572: 错误: ‘png_byte’没有命名一个类型
./png.h:573: 错误: ‘png_byte’没有命名一个类型
./png.h:574: 错误: ‘png_byte’没有命名一个类型
./png.h:575: 错误: ‘png_byte’没有命名一个类型
./png.h:576: 错误: ‘png_byte’没有命名一个类型
./png.h:578: 错误: expected initializer before ‘*’ token
./png.h:579: 错误: expected initializer before ‘*’ token
./png.h:587: 错误: ‘png_uint_16’没有命名一个类型
./png.h:588: 错误: ‘png_uint_16’没有命名一个类型
./png.h:589: 错误: ‘png_uint_16’没有命名一个类型
./png.h:590: 错误: ‘png_uint_16’没有命名一个类型
./png.h:591: 错误: ‘png_uint_16’没有命名一个类型
./png.h:593: 错误: expected initializer before ‘*’ token
./png.h:594: 错误: expected initializer before ‘*’ token
./png.h:603: 错误: ‘png_charp’没有命名一个类型
./png.h:604: 错误: ‘png_byte’没有命名一个类型
./png.h:605: 错误: ‘png_sPLT_entryp’没有命名一个类型
./png.h:606: 错误: ‘png_int_32’没有命名一个类型
./png.h:608: 错误: expected initializer before ‘*’ token
./png.h:609: 错误: expected initializer before ‘*’ token
./png.h:661: 错误: ‘png_uint_16’没有命名一个类型
./png.h:662: 错误: ‘png_byte’没有命名一个类型
./png.h:663: 错误: ‘png_byte’没有命名一个类型
./png.h:664: 错误: ‘png_byte’没有命名一个类型
./png.h:665: 错误: ‘png_byte’没有命名一个类型
./png.h:666: 错误: ‘png_byte’没有命名一个类型
./png.h:668: 错误: expected initializer before ‘*’ token
./png.h:669: 错误: expected initializer before ‘*’ token
./png.h:734: 错误: ‘png_uint_32’没有命名一个类型
./png.h:735: 错误: ‘png_uint_32’没有命名一个类型
./png.h:736: 错误: ‘png_uint_32’没有命名一个类型
./png.h:737: 错误: ‘png_uint_32’没有命名一个类型
./png.h:738: 错误: ‘png_colorp’没有命名一个类型
./png.h:739: 错误: ‘png_uint_16’没有命名一个类型
./png.h:740: 错误: ‘png_uint_16’没有命名一个类型
./png.h:741: 错误: ‘png_byte’没有命名一个类型
./png.h:742: 错误: ‘png_byte’没有命名一个类型
./png.h:744: 错误: ‘png_byte’没有命名一个类型
./png.h:745: 错误: ‘png_byte’没有命名一个类型
./png.h:746: 错误: ‘png_byte’没有命名一个类型
./png.h:749: 错误: ‘png_byte’没有命名一个类型
./png.h:750: 错误: ‘png_byte’没有命名一个类型
./png.h:751: 错误: ‘png_byte’没有命名一个类型
./png.h:752: 错误: ‘png_byte’没有命名一个类型
./png.h:969: 错误: expected initializer before ‘*’ token
./png.h:970: 错误: expected initializer before ‘*’ token
./png.h:1075: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1076: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1077: 错误: ‘png_byte’没有命名一个类型
./png.h:1078: 错误: ‘png_byte’没有命名一个类型
./png.h:1079: 错误: ‘png_byte’没有命名一个类型
./png.h:1080: 错误: ‘png_byte’没有命名一个类型
./png.h:1083: 错误: expected initializer before ‘*’ token
./png.h:1084: 错误: expected initializer before ‘*’ token
./png.h:1093: 错误: expected initializer before ‘*’ token
./png.h:1095: 错误: expected `)' before ‘*’ token
./png.h:1096: 错误: expected `)' before ‘*’ token
./png.h:1097: 错误: expected `)' before ‘*’ token
./png.h:1098: 错误: expected `)' before ‘*’ token
./png.h:1100: 错误: expected `)' before ‘*’ token
./png.h:1144: 错误: ISO C++ 不允许声明无类型的‘png_voidp’
./png.h:1144: 错误: typedef‘png_voidp’被初始化(改用 __typeof__)
./png.h:1144: 错误: ‘png_malloc_ptr’在此作用域中尚未声明
./png.h:1145: 错误: expected initializer before ‘PNGARG’
./png.h:1159: 错误: ‘png_error_ptr’没有命名一个类型
./png.h:1160: 错误: ‘png_error_ptr’没有命名一个类型
./png.h:1161: 错误: ‘png_voidp’没有命名一个类型
./png.h:1162: 错误: ‘png_rw_ptr’没有命名一个类型
./png.h:1163: 错误: ‘png_rw_ptr’没有命名一个类型
./png.h:1164: 错误: ‘png_voidp’没有命名一个类型
./png.h:1184: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1185: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1186: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1188: 错误: ‘z_stream’没有命名一个类型
./png.h:1189: 错误: ‘png_bytep’没有命名一个类型
./png.h:1190: 错误: ‘png_size_t’没有命名一个类型
./png.h:1197: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1198: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1199: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1200: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1201: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1202: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1203: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1204: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1205: 错误: ‘png_bytep’没有命名一个类型
./png.h:1206: 错误: ‘png_bytep’没有命名一个类型
./png.h:1208: 错误: ‘png_bytep’没有命名一个类型
./png.h:1209: 错误: ‘png_bytep’没有命名一个类型
./png.h:1210: 错误: ‘png_bytep’没有命名一个类型
./png.h:1211: 错误: ‘png_bytep’没有命名一个类型
./png.h:1215: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1216: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1217: 错误: ‘png_colorp’没有命名一个类型
./png.h:1218: 错误: ‘png_uint_16’没有命名一个类型
./png.h:1219: 错误: ‘png_uint_16’没有命名一个类型
./png.h:1220: 错误: ‘png_byte’没有命名一个类型
./png.h:1221: 错误: ‘png_byte’没有命名一个类型
./png.h:1222: 错误: ‘png_byte’没有命名一个类型
./png.h:1223: 错误: ‘png_byte’没有命名一个类型
./png.h:1224: 错误: ‘png_byte’没有命名一个类型
./png.h:1225: 错误: ‘png_byte’没有命名一个类型
./png.h:1226: 错误: ‘png_byte’没有命名一个类型
./png.h:1227: 错误: ‘png_byte’没有命名一个类型
./png.h:1228: 错误: ‘png_byte’没有命名一个类型
./png.h:1229: 错误: ‘png_byte’没有命名一个类型
./png.h:1230: 错误: ‘png_byte’没有命名一个类型
./png.h:1231: 错误: ‘png_byte’没有命名一个类型
./png.h:1232: 错误: ‘png_byte’没有命名一个类型
./png.h:1290: 错误: ‘png_read_status_ptr’没有命名一个类型
./png.h:1291: 错误: ‘png_write_status_ptr’没有命名一个类型
./png.h:1420: 错误: ‘png_bytep’没有命名一个类型
./png.h:1432: 错误: ‘png_byte’没有命名一个类型
./png.h:1446: 错误: ‘png_uint_32’没有命名一个类型
./png.h:1453: 错误: ‘png_structp’没有命名一个类型
./png.h:1455: 错误: expected initializer before ‘*’ token
./png.h:1464: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:1464: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:1464: 错误: ‘png_uint_32’在此作用域中尚未声明
./png.h:1464: 错误: ‘png_access_version_number’在此作用域中尚未声明
./png.h:1464: 错误: initializer 表达式列表被看作复合表达式
./png.h:1464: 错误: expected ‘,’ or ‘;’ before ‘PNGARG’
./png.h:1469: 错误: ‘png_set_sig_bytes’未声明
./png.h:1469: 错误: expected initializer before ‘PNGARG’
./png.h:1477: 错误: ‘png_sig_cmp’未声明
./png.h:1477: 错误: expected initializer before ‘PNGARG’
./png.h:1483: 错误: ‘png_check_sig’未声明
./png.h:1483: 错误: expected initializer before ‘PNGARG’
./png.h:1486: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:1486: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:1486: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:1486: 错误: ‘png_structp’在此作用域中尚未声明
./png.h:1486: 错误: ‘png_create_read_struct’在此作用域中尚未声明
./png.h:1491: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:1491: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:1491: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:1491: 错误: ‘png_structp’在此作用域中尚未声明
./png.h:1491: 错误: ‘png_create_write_struct’在此作用域中尚未声明
./png.h:1506: 错误: ‘png_reset_zstream’未声明
./png.h:1506: 错误: expected initializer before ‘PNGARG’
./png.h:1521: 错误: ‘png_write_chunk’未声明
./png.h:1521: 错误: expected initializer before ‘PNGARG’
./png.h:1525: 错误: ‘png_write_chunk_start’未声明
./png.h:1525: 错误: expected initializer before ‘PNGARG’
./png.h:1529: 错误: ‘png_write_chunk_data’未声明
./png.h:1529: 错误: expected initializer before ‘PNGARG’
./png.h:1533: 错误: ‘png_write_chunk_end’未声明
./png.h:1533: 错误: expected initializer before ‘PNGARG’
./png.h:1536: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:1536: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:1536: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:1536: 错误: ‘png_infop’在此作用域中尚未声明
./png.h:1536: 错误: ‘png_create_info_struct’在此作用域中尚未声明
./png.h:1547: 错误: ‘png_info_init_3’未声明
./png.h:1547: 错误: expected initializer before ‘PNGARG’
./png.h:1551: 错误: ‘png_write_info_before_PLTE’未声明
./png.h:1551: 错误: expected initializer before ‘PNGARG’
./png.h:1553: 错误: ‘png_write_info’未声明
./png.h:1553: 错误: expected initializer before ‘PNGARG’
./png.h:1558: 错误: ‘png_read_info’未声明
./png.h:1558: 错误: expected initializer before ‘PNGARG’
./png.h:1617: 错误: ‘png_build_grayscale_palette’未声明
./png.h:1617: 错误: expected initializer before ‘PNGARG’
./png.h:1731: 错误: ‘png_start_read_image’未声明
./png.h:1731: 错误: expected initializer before ‘PNGARG’
./png.h:1734: 错误: ‘png_read_update_info’未声明
./png.h:1734: 错误: expected initializer before ‘PNGARG’
./png.h:1739: 错误: ‘png_read_rows’未声明
./png.h:1739: 错误: expected initializer before ‘PNGARG’
./png.h:1745: 错误: ‘png_read_row’未声明
./png.h:1745: 错误: expected initializer before ‘PNGARG’
./png.h:1752: 错误: ‘png_read_image’未声明
./png.h:1752: 错误: expected initializer before ‘PNGARG’
./png.h:1757: 错误: ‘png_write_row’未声明
./png.h:1757: 错误: expected initializer before ‘PNGARG’
./png.h:1761: 错误: ‘png_write_rows’未声明
./png.h:1761: 错误: expected initializer before ‘PNGARG’
./png.h:1765: 错误: ‘png_write_image’未声明
./png.h:1765: 错误: expected initializer before ‘PNGARG’
./png.h:1769: 错误: ‘png_write_end’未声明
./png.h:1769: 错误: expected initializer before ‘PNGARG’
./png.h:1774: 错误: ‘png_read_end’未声明
./png.h:1774: 错误: expected initializer before ‘PNGARG’
./png.h:1779: 错误: ‘png_destroy_info_struct’未声明
./png.h:1779: 错误: expected initializer before ‘PNGARG’
./png.h:1783: 错误: ‘png_destroy_read_struct’未声明
./png.h:1783: 错误: expected initializer before ‘PNGARG’
./png.h:1787: 错误: expected initializer before ‘PNGARG’
./png.h:1791: 错误: ‘png_destroy_write_struct’未声明
./png.h:1792: 错误: expected initializer before ‘PNGARG’
./png.h:1795: 错误: expected initializer before ‘PNGARG’
./png.h:1798: 错误: ‘png_set_crc_action’未声明
./png.h:1798: 错误: expected initializer before ‘PNGARG’
./png.h:1828: 错误: ‘png_set_filter’未声明
./png.h:1828: 错误: expected initializer before ‘PNGARG’
./png.h:1906: 错误: ‘png_set_compression_level’未声明
./png.h:1906: 错误: expected initializer before ‘PNGARG’
./png.h:1909: 错误: ‘png_set_compression_mem_level’未声明
./png.h:1910: 错误: expected initializer before ‘PNGARG’
./png.h:1912: 错误: ‘png_set_compression_strategy’未声明
./png.h:1913: 错误: expected initializer before ‘PNGARG’
./png.h:1915: 错误: ‘png_set_compression_window_bits’未声明
./png.h:1916: 错误: expected initializer before ‘PNGARG’
./png.h:1918: 错误: ‘png_set_compression_method’未声明
./png.h:1918: 错误: expected initializer before ‘PNGARG’
./png.h:1932: 错误: ‘png_init_io’未声明
./png.h:1932: 错误: expected initializer before ‘PNGARG’
./png.h:1943: 错误: ‘png_set_error_fn’未声明
./png.h:1943: 错误: expected initializer before ‘PNGARG’
./png.h:1947: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:1947: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:1947: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:1947: 错误: ‘png_voidp’在此作用域中尚未声明
./png.h:1947: 错误: ‘png_get_error_ptr’在此作用域中尚未声明
./png.h:1954: 错误: ‘png_set_write_fn’未声明
./png.h:1954: 错误: expected initializer before ‘PNGARG’
./png.h:1958: 错误: ‘png_set_read_fn’未声明
./png.h:1958: 错误: expected initializer before ‘PNGARG’
./png.h:1962: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:1962: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:1962: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:1962: 错误: ‘png_voidp’在此作用域中尚未声明
./png.h:1962: 错误: ‘png_get_io_ptr’在此作用域中尚未声明
./png.h:1964: 错误: ‘png_set_read_status_fn’未声明
./png.h:1964: 错误: expected initializer before ‘PNGARG’
./png.h:1967: 错误: ‘png_set_write_status_fn’未声明
./png.h:1967: 错误: expected initializer before ‘PNGARG’
./png.h:2032: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2032: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2032: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2032: 错误: ‘png_voidp’在此作用域中尚未声明
./png.h:2032: 错误: ‘png_malloc’在此作用域中尚未声明
./png.h:2039: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2039: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2039: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2039: 错误: ‘png_voidp’在此作用域中尚未声明
./png.h:2039: 错误: ‘png_malloc_warn’在此作用域中尚未声明
./png.h:2044: 错误: ‘png_free’未声明
./png.h:2044: 错误: expected initializer before ‘PNGARG’
./png.h:2056: 错误: ‘png_free_data’未声明
./png.h:2056: 错误: expected initializer before ‘PNGARG’
./png.h:2090: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2090: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2090: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2090: 错误: ‘png_voidp’在此作用域中尚未声明
./png.h:2090: 错误: ‘png_memcpy_check’在此作用域中尚未声明
./png.h:2093: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2093: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2093: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2093: 错误: ‘png_voidp’在此作用域中尚未声明
./png.h:2093: 错误: ‘png_memset_check’在此作用域中尚未声明
./png.h:2103: 错误: ‘png_error’未声明
./png.h:2103: 错误: expected initializer before ‘PNGARG’
./png.h:2107: 错误: ‘png_chunk_error’未声明
./png.h:2107: 错误: expected initializer before ‘PNGARG’
./png.h:2116: 错误: ‘png_warning’未声明
./png.h:2116: 错误: expected initializer before ‘PNGARG’
./png.h:2139: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2139: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2139: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2139: 错误: ‘png_uint_32’在此作用域中尚未声明
./png.h:2139: 错误: ‘png_get_valid’在此作用域中尚未声明
./png.h:2143: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2143: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2143: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2143: 错误: ‘png_uint_32’在此作用域中尚未声明
./png.h:2143: 错误: ‘png_get_rowbytes’在此作用域中尚未声明
./png.h:2158: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2158: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2158: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2158: 错误: ‘png_byte’在此作用域中尚未声明
./png.h:2158: 错误: ‘png_get_channels’在此作用域中尚未声明
./png.h:2217: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2217: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2217: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2217: 错误: ‘png_bytep’在此作用域中尚未声明
./png.h:2217: 错误: ‘png_get_signature’在此作用域中尚未声明
./png.h:2289: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2289: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2289: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2289: 错误: ‘png_uint_32’在此作用域中尚未声明
./png.h:2289: 错误: ‘png_get_IHDR’在此作用域中尚未声明
./png.h:2294: 错误: ‘png_set_IHDR’未声明
./png.h:2294: 错误: expected initializer before ‘PNGARG’
./png.h:2333: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2333: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2333: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2333: 错误: ‘png_uint_32’在此作用域中尚未声明
./png.h:2333: 错误: ‘png_get_PLTE’在此作用域中尚未声明
./png.h:2336: 错误: ‘png_set_PLTE’未声明
./png.h:2336: 错误: expected initializer before ‘PNGARG’
./png.h:2480: 错误: ‘png_set_invalid’未声明
./png.h:2480: 错误: expected initializer before ‘PNGARG’
./png.h:2546: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2546: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2546: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2546: 错误: ‘png_charp’在此作用域中尚未声明
./png.h:2546: 错误: ‘png_get_copyright’在此作用域中尚未声明
./png.h:2547: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2547: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2547: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2547: 错误: ‘png_charp’在此作用域中尚未声明
./png.h:2547: 错误: ‘png_get_header_ver’在此作用域中尚未声明
./png.h:2548: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2548: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2548: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2548: 错误: ‘png_charp’在此作用域中尚未声明
./png.h:2548: 错误: ‘png_get_header_version’在此作用域中尚未声明
./png.h:2549: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2549: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2549: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2549: 错误: ‘png_charp’在此作用域中尚未声明
./png.h:2549: 错误: ‘png_get_libpng_ver’在此作用域中尚未声明
./png.h:2704: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2704: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2704: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2704: 错误: ‘png_uint_32’在此作用域中尚未声明
./png.h:2704: 错误: ‘png_get_uint_32’在此作用域中尚未声明
./png.h:2705: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2705: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2705: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2705: 错误: ‘png_uint_16’在此作用域中尚未声明
./png.h:2705: 错误: ‘png_get_uint_16’在此作用域中尚未声明
./png.h:2706: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2706: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2706: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2706: 错误: ‘png_int_32’在此作用域中尚未声明
./png.h:2706: 错误: ‘png_get_int_32’在此作用域中尚未声明
./png.h:2708: 错误: ISO C++ 不允许声明无类型的‘PNG_EXPORT’
./png.h:2708: 警告: ‘PNG_EXPORT’已初始化,却又被声明为‘extern’
./png.h:2708: 错误: redefinition of ‘int PNG_EXPORT’
./png.h:1464: 错误: ‘int PNG_EXPORT’已在此定义过
./png.h:2708: 错误: ‘png_uint_32’在此作用域中尚未声明
./png.h:2708: 错误: ‘png_get_uint_31’在此作用域中尚未声明
./png.h:2714: 错误: ‘png_save_uint_32’未声明
./png.h:2715: 错误: expected initializer before ‘PNGARG’
./png.h:2716: 错误: ‘png_save_int_32’未声明
./png.h:2717: 错误: expected initializer before ‘PNGARG’
./png.h:2723: 错误: ‘png_save_uint_16’未声明
./png.h:2724: 错误: expected initializer before ‘PNGARG’
qanimationwriter.cpp:74: 错误: ‘png_structp’没有命名一个类型
qanimationwriter.cpp:75: 错误: ‘png_infop’没有命名一个类型
qanimationwriter.cpp:107: 错误: ‘png_structp’未声明
qanimationwriter.cpp:107: 错误: ‘png_bytep’未声明
qanimationwriter.cpp:107: 错误: ‘png_size_t’未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::begin_png()’:
qanimationwriter.cpp:96: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:96: 错误: ‘png_create_write_struct’在此作用域中尚未声明
qanimationwriter.cpp:97: 错误: ‘info_ptr’在此作用域中尚未声明
qanimationwriter.cpp:97: 错误: ‘png_create_info_struct’在此作用域中尚未声明
qanimationwriter.cpp:98: 错误: ‘png_set_compression_level’在此作用域中尚未声明
qanimationwriter.cpp:99: 错误: ‘png_set_write_fn’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::end_png()’:
qanimationwriter.cpp:104: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:104: 错误: ‘info_ptr’在此作用域中尚未声明
qanimationwriter.cpp:104: 错误: ‘png_destroy_write_struct’在此作用域中尚未声明
qanimationwriter.cpp: In static member function ‘static void QAnimationWriterMNG::write(int, int, int)’:
qanimationwriter.cpp:109: 错误: ‘png_get_io_ptr’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::writePNG(const QImage&)’:
qanimationwriter.cpp:118: 错误: ‘info_ptr’在此作用域中尚未声明
qanimationwriter.cpp:120: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:120: 错误: ‘png_set_sig_bytes’在此作用域中尚未声明
qanimationwriter.cpp:124: 错误: ‘png_set_IHDR’在此作用域中尚未声明
qanimationwriter.cpp:125: 错误: ‘png_write_info’在此作用域中尚未声明
qanimationwriter.cpp:129: 错误: ‘PNG_FILLER_BEFORE’在此作用域中尚未声明
qanimationwriter.cpp:129: 错误: ‘PNG_FILLER_AFTER’在此作用域中尚未声明
qanimationwriter.cpp:129: 错误: ‘png_set_filler’在此作用域中尚未声明
qanimationwriter.cpp:134: 错误: ‘png_set_bgr’在此作用域中尚未声明
qanimationwriter.cpp:138: 错误: ‘png_bytep’在此作用域中尚未声明
qanimationwriter.cpp:138: 错误: ‘row_pointers’在此作用域中尚未声明
qanimationwriter.cpp:138: 错误: expected type-specifier before ‘png_bytep’
qanimationwriter.cpp:138: 错误: expected `;' before ‘png_bytep’
qanimationwriter.cpp:140: 错误: expected `;' before ‘image’
qanimationwriter.cpp:141: 错误: ‘png_write_image’在此作用域中尚未声明
qanimationwriter.cpp:142: 错误: ‘delete’的参数类型应为指针而非‘<type error>’
qanimationwriter.cpp:143: 错误: ‘png_write_end’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::writeMHDR(const QSize&, int)’:
qanimationwriter.cpp:167: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:167: 错误: ‘png_byte’在此作用域中尚未声明
qanimationwriter.cpp:167: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:167: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:167: 错误: ‘png_write_chunk’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::writeMEND()’:
qanimationwriter.cpp:172: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:172: 错误: ‘png_byte’在此作用域中尚未声明
qanimationwriter.cpp:172: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:172: 错误: ‘png_write_chunk’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::writeDEFI(const QPoint&, const QSize&)’:
qanimationwriter.cpp:194: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:194: 错误: ‘png_byte’在此作用域中尚未声明
qanimationwriter.cpp:194: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:194: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:194: 错误: ‘png_write_chunk’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::writeFRAM(const QSize&)’:
qanimationwriter.cpp:226: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:226: 错误: ‘png_byte’在此作用域中尚未声明
qanimationwriter.cpp:226: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:226: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:226: 错误: ‘png_write_chunk’在此作用域中尚未声明
qanimationwriter.cpp: In member function ‘void QAnimationWriterMNG::writeMOVE(const QPoint&)’:
qanimationwriter.cpp:240: 错误: ‘png_ptr’在此作用域中尚未声明
qanimationwriter.cpp:240: 错误: ‘png_byte’在此作用域中尚未声明
qanimationwriter.cpp:240: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:240: 错误: expected primary-expression before ‘)’ token
qanimationwriter.cpp:240: 错误: ‘png_write_chunk’在此作用域中尚未声明
make: *** [.obj/release-shared/qanimationwriter.o] 错误 1
NB才是王道
快速回复
限100 字节
 
上一个 下一个