Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.4, 5.13.1
-
None
Description
After commit 5b3dfa47 (qmake: link qt libraries by full path), some of the dependency libraries are not part of the linker command. This causes linker failures when Qt is configured with -no-rpath.
Fails with ogl-runtime project's examples:
g++ -Wl,-O1 -Wl,--enable-new-dtags -o cppdatainput .obj/main.o .obj/qrc_res.o /home/sapiippo/development/build/ogl-runtime/lib/libQt5Studio3D.so /home/sapiippo/development/build/qt5-install/lib/libQt5OpenGL.so /home/sapiippo/development/build/qt5-install/lib/libQt5Widgets.so /home/sapiippo/development/build/qt5-install/lib/libQt5Quick.so /home/sapiippo/development/build/qt5-install/lib/libQt5OpenGLExtensions.a /home/sapiippo/development/build/qt5-install/lib/libQt5Gui.so /home/sapiippo/development/build/qt5-install/lib/libQt5Qml.so /home/sapiippo/development/build/qt5-install/lib/libQt5Network.so /home/sapiippo/development/build/qt5-install/lib/libQt5Core.so /usr/lib/x86_64-linux-gnu/libGL.so -lpthread /usr/bin/ld: warning: libqt3dsopengl.so.2, needed by /home/sapiippo/development/build/ogl-runtime/lib/libQt5Studio3D.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libqt3dsqmlstreamer.so.2, needed by /home/sapiippo/development/build/ogl-runtime/lib/libQt5Studio3D.so, not found (try using -rpath or -rpath-link)
Linker command before the patch has the missing libs (-lqt3dsopengl, -lqt3dsqmlstreamer):
g++ -Wl,-O1 -Wl,--enable-new-dtags -o cppdatainput .obj/main.o .obj/qrc_res.o -L/home/sapiippo/development/build/ogl-runtime/lib -lQt5Studio3D -lqt3dsopengl -L/home/sapiippo/development/build/qt5-install/lib -ldl -lEGL -lqt3dsqmlstreamer -lQt5OpenGL -lQt5Widgets -lQt5Quick -lQt5OpenGLExtensions -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core /usr/lib/x86_64-linux-gnu/libGL.so -lpthread