Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115228

prl files have probably unnecesary link against libgl/libgles

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 6.4.2, 6.5.1
    • Build System
    • None
    • Debian/Ubuntu
    • Linux/X11

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            lisandropm Lisandro Damián Nicanor Pérez Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes