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

libQt5MultimediaWidgets.prl has unwanted -lpulse and -lpulse-mainloop-glib link flags

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.14.2, 5.15.0 Beta1
    • 5.9.1
    • Build System
    • None
    • Debian GNU/Linux unstable amd64
    • 7e64b859b6a663f42ee3067930ef132d9e7d2901 (qt/qtmultimedia/5.14)

    Description

      In Qt 5.9.1, theĀ libQt5MultimediaWidgets.prl file has:

      QMAKE_PRL_LIBS = -L/usr/X11R6/lib64 -lQt5Multimedia -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Core -lpthread -lpulse-mainloop-glib -lpulse -lglib-2.0

      So all applications using the Multimedia Widgets module need Pulseaudio headers installed to compile correctly.

      The problem is that Qt Multimedia Widgets has absolutely no code to work with pulseaudio. All code is in Qt Multimedia, and libQt5Multimedia.so.5 is linked dynamically with libpulse.so.0, so that dependency is not needed by any means.

      It is added because:

      • multimediawidgets.pro has: QT = core gui multimedia-private widgets-private
      • multimedia/audio/audio.pri has: QMAKE_USE_FOR_PRIVATE += pulseaudio

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-62626
          # Subject Branch Project Status CR V

          Activity

            People

              jbornema Joerg Bornemann
              mandriver Dmitry Shachnev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes