• 5615阅读
  • 1回复

[提问]编译qvfb [复制链接]

上一主题 下一主题
离线fq1110
 

只看楼主 倒序阅读 楼主  发表于: 2013-02-01
编译qvfb
— 本帖被 XChinux 从 Qt基础编程 移动到本区(2013-02-27) —
QT4 linux下编译qvfb时,编译成功,但链接出错都是png相关函数  png_create_write_struct .......。png.h的文件存在。没有提示找不到png.h文件。libpng-dev卸载与安装后测试都没作用。4.8.4的版本,有人遇到过这问题吗?
离线fq1110

只看该作者 1楼 发表于: 2013-02-27
In function `QAnimationWriter::QAnimationWriter(QString const&, char const*)':
qanimationwriter.cpp:(.text+0xa9c): undefined reference to `png_create_write_struct'
qanimationwriter.cpp:(.text+0xaa7): undefined reference to `png_create_info_struct'
qanimationwriter.cpp:(.text+0xabd): undefined reference to `png_set_compression_level'
qanimationwriter.cpp:(.text+0xadc): undefined reference to `png_set_write_fn'
.obj/release-shared/qanimationwriter.o: In function `QAnimationWriter::QAnimationWriter(QString const&, char const*)':
qanimationwriter.cpp:(.text+0xc1c): undefined reference to `png_create_write_struct'
qanimationwriter.cpp:(.text+0xc27): undefined reference to `png_create_info_struct'
qanimationwriter.cpp:(.text+0xc3d): undefined reference to `png_set_compression_level'
qanimationwriter.cpp:(.text+0xc5c): undefined reference to `png_set_write_fn'
.obj/release-shared/qanimationwriter.o: In function `QAnimationWriterMNG::setImage(QImage const&)':
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG8setImageERK6QImage[QAnimationWriterMNG::setImage(QImage const&)]+0xb6): undefined reference to `png_write_chunk'
.obj/release-shared/qanimationwriter.o: In function `QAnimationWriterMNG::write(png_struct_def*, unsigned char*, unsigned int)':
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG5writeEP14png_struct_defPhj[QAnimationWriterMNG::write(png_struct_def*, unsigned char*, unsigned int)]+0xd): undefined reference to `png_get_io_ptr'
.obj/release-shared/qanimationwriter.o: In function `QAnimationWriterMNG::composeImage(QImage const&, QPoint const&)':
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG12composeImageERK6QImageRK6QPoint[QAnimationWriterMNG::composeImage(QImage const&, QPoint const&)]+0x4a): undefined reference to `png_write_chunk'
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG12composeImageERK6QImageRK6QPoint[QAnimationWriterMNG::composeImage(QImage const&, QPoint const&)]+0x5d): undefined reference to `png_set_sig_bytes'
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG12composeImageERK6QImageRK6QPoint[QAnimationWriterMNG::composeImage(QImage const&, QPoint const&)]+0xc3): undefined reference to `png_set_IHDR'
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG12composeImageERK6QImageRK6QPoint[QAnimationWriterMNG::composeImage(QImage const&, QPoint const&)]+0xd5): undefined reference to `png_write_info'
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG12composeImageERK6QImageRK6QPoint[QAnimationWriterMNG::composeImage(QImage const&, QPoint const&)]+0xf0): undefined reference to `png_set_bgr'
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG12composeImageERK6QImageRK6QPoint[QAnimationWriterMNG::composeImage(QImage const&, QPoint const&)]+0x140): undefined reference to `png_write_image'
快速回复
限100 字节
 
上一个 下一个