Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
6.4.2, 6.5.1
-
None
-
Debian/Ubuntu
Description
While working on creating Debian packages for offering both OpenGL Desktop/ES I noticed that some of Qt Declarative's prl files include either -lGL or -lGLESv2 linking stanzas. For example:
libQt6QuickWidgets.prl:QMAKE_PRL_LIBS_FOR_CMAKE = $$[QT_INSTALL_LIBS]/libQt6Quick.so;$$[QT_INSTALL_LIBS]/libQt6QmlModels.so;$$[QT_INSTALL_LIBS]/libQt6OpenGL.so;$$[QT_INSTALL_LIBS]/libQt6Qml.so;$$[QT_INSTALL_LIBS]/libQt6Network.so;$$[QT_INSTALL_LIBS]/libQt6Widgets.so;$$[QT_INSTALL_LIBS]/libQt6Gui.so;$$[QT_INSTALL_LIBS]/libQt6Core.so;-pthread;-lGLESv2;-lEGL
Now I do not see those flags in the cmake files. Also:
$ objdump -x libQt6QuickWidgets.so.6.5.1 | grep NEEDED NEEDED libQt6Quick.so.6 NEEDED libQt6Qml.so.6 NEEDED libQt6Widgets.so.6 NEEDED libQt6Gui.so.6 NEEDED libQt6Core.so.6 NEEDED libstdc++.so.6 NEEDED libc.so.6
So I wonder if those flags should really be there.