标题:编译qvfb
作者:fq1110
日期:2013-02-01 11:15
内容:
QT4 linux下编译qvfb时,编译成功,但链接出错。都是png相关函数png_create_write_struct .......。png.h的文件存在。没有提示找不到png.h文件。libpng-dev卸载与安装后测试都没作用。4.8.4的版本,有人遇到过这问题吗?
#1 [fq1110 02-27 11:20]
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+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+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+0x4a): undefined reference to `png_write_chunk'
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG12composeImageERK6QImageRK6QPoint[QAnimationWriterMNG::composeImage(QIm ..