[Development] qvfb compilation error - undefined reference to `png_create_write_struct'

Dinesh Guleria din.gulu.er at gmail.com
Fri Dec 6 06:31:12 CET 2013


Hi,

I am trying to compile QVFB on my X11 host. I am getting error while
compiling qvfb for x11.
Do i am missing some library because of which compilation is failing ?

1> Now where is this png_create_write_struct is declared that i am getting
error related to it ?

2> Does qvbf compilation for x11 looks for libpng in host file system or it
looks for libpng inside QT_source_code ?
     /qt-everywhere-opensource-src-4.8.5/src/3rdparty/libpng

3> Please suggest How to resolve this error to compile successfully ?

I have also asked in another place but did not got reply (it contains the
detail description of error) :--
http://stackoverflow.com/questions/20365850/qvfb-compilation-error-undefined-reference-to-png-create-write-struct

===== Error =================

#/qt-everywhere-opensource-src-4.8.5/tools/qvfb$ make
e-opensource-src-4.8.5/lib -L/usr/X11R6/lib -lQtGui -lQtCore -lGL -lpthread
-lXext -lX11 -lm
.obj/release-shared/qanimationwriter.o: In function
`QAnimationWriter::QAnimationWriter(QString const&, char const*)':
qanimationwriter.cpp:(.text+0xbf): undefined reference to
`png_create_write_struct'
qanimationwriter.cpp:(.text+0xca): undefined reference to
`png_create_info_struct'
qanimationwriter.cpp:(.text+0xe0): undefined reference to
`png_set_compression_level'
qanimationwriter.cpp:(.text+0xff): undefined reference to `png_set_write_fn'
.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)]+0xb): 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&)]+0x65): undefined reference to `png_write_chunk'
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG12composeImageERK6QImageRK6QPoint[QAnimationWriterMNG::composeImage(QImage
const&, QPoint const&)]+0x78): undefined reference to `png_set_sig_bytes'
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG12composeImageERK6QImageRK6QPoint[QAnimationWriterMNG::composeImage(QImage
const&, QPoint const&)]+0xda): undefined reference to `png_set_IHDR'
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG12composeImageERK6QImageRK6QPoint[QAnimationWriterMNG::composeImage(QImage
const&, QPoint const&)]+0xec): undefined reference to `png_write_info'
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG12composeImageERK6QImageRK6QPoint[QAnimationWriterMNG::composeImage(QImage
const&, QPoint const&)]+0x107): undefined reference to `png_set_bgr'
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG12composeImageERK6QImageRK6QPoint[QAnimationWriterMNG::composeImage(QImage
const&, QPoint const&)]+0x154): undefined reference to `png_write_image'
qanimationwriter.cpp:(.text._ZN19QAnimationWriterMNG12composeImageERK6QImageRK6QPoint[QAnimationWriterMNG::composeImage(QImage
const&, QPoint const&)]+0x172): undefined reference to `png_write_end'


==========================

Please suggest how can i resolve this error.

Regards,
Dinesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131206/bc3c9676/attachment.html>


More information about the Development mailing list