Undefined reference with Qt 4.8.6 and Intel icc
I upgraded to Qt 4.8.6 and compiled on Ubuntu 14.04 and Intel icc - this time I get undefined references . I do have libpng1.6.18 installed under /usr/local/lib and it is there on my LD_LIBRARY_PATH.
Any suggestions ?
cd src/gui/ && make -f Makefile
make[1]: Entering directory `/home/qt-everywhere-opensource-src-4.8.6/src/gui'
rm -f libQtGui.so.4.8.6 libQtGui.so libQtGui.so.4 libQtGui.so.4.8
i
.obj/release-shared/qpnghandler.o: In function `QPNGImageWriter::writeImage(QImage const&, int, QString const&, int, int)':
image/qpnghandler.cpp:(.text+0x207): undefined reference to `png_set_longjmp_fn'
.obj/release-shared/qpnghandler.o: In function `QPngHandlerPrivate::readPngImage(QImage*)':
image/qpnghandler.cpp:(.text+0x1c20): undefined reference to `png_set_longjmp_fn'
.obj/release-shared/qpnghandler.o: In function `QPngHandlerPrivate::readPngHeader()':
image/qpnghandler.cpp:(.text+0x212d): undefined reference to `png_set_longjmp_fn'
make[1]: *** [../../lib/libQtGui.so.4.8.6] Error 1
make[1]: Leaving directory `/home/qt-everywhere-opensource-src-4.8.6/src/gui'
make: *** [sub-gui-make_default-ordered] Error 2
Re: Undefined reference with Qt 4.8.6 and Intel icc
This is how I ran it - ./configure --platform=linux-icc-64 -system-libpng
and then typed make.
Re: Undefined reference with Qt 4.8.6 and Intel icc
Look at the linker line in your compiler output.
Does it contain "-L /usr/local/lib"?
LD_LIBRARY_PATH is irrelevant here, it is input for the runtime linker "ld".
Cheers,
_
Re: Undefined reference with Qt 4.8.6 and Intel icc
Success !
I got this to compile !
./configure --platform=linux-icc-64 -qt-libpng and it worked.