Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.5.0
-
None
Description
Trying to build Qt-5.5.0 on my system, where Qt-5.4.0 is already installed,
fails due to linker errors, e.g.:
... x86_64-pc-linux-gnu-g++ -Wl,--no-demangle,--hash-style=gnu,--as-needed,--gc-sections,--icf=safe -Wl,--no-undefined -fuse-ld=gold -Wl,--enable-new-dtags -shared -o libqjpeg.so .obj/qjpeghandler.o .obj/main.o .obj/moc_main.o -L/usr/lib -ljpeg -L/var/tmp/portage/dev-qt/qtgui-5.9999/work/qtgui-5.9999_build/lib -lQt5Gui -lQt5Core -lGL -lpthread .obj/qjpeghandler.o:qjpeghandler.cpp:function _ZN12QJpegHandlerC2Ev: error: undefined reference to '_Z26qt_convert_rgb888_to_rgb32PjPKhi' .obj/qjpeghandler.o:qjpeghandler.cpp:function _ZN12QJpegHandler5writeERK6QImage: error: undefined reference to '_Z17qt_imageTransformR6QImage6QFlagsIN15QImageIOHandler14Trans formationEE' collect2: error: ld returned 1 exit status Makefile:129: recipe for target '../../../../plugins/imageformats/libqjpeg.so' failed
Here " -L/usr/lib -ljpeg -L/var/tmp/portage/dev-qt/qtgui-5.9999/work/qtgui-5.9999_build/lib -lQt5Gui" is the cause of the issue.
Because of the first "-L/usr/lib", not the newly build libQt5Gui.so.5.5 is used for linking, but the already installed /usr/lib/libQt5Gui.so.5.4.
When I delete the old library (ibQt5Gui.so.5.4) building works fine.