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

GStreamer::Gl dependency is not recorded correctly in a static build

    XMLWordPrintable

    Details

    • Commits:
      b6c5e0667696c1d4abaf37f2224b2121b72cdebd (qt/qtbase/dev) 2e2c8b8c29d8448892a0a90228b4254ef8411e8f (qt/qtbase/6.1) 8ab5a7283295ede0619e26f959d2b69f93260b70 (qt/qtbase/6.2)

      Description

      When doing a Qt static build and linking against QtMultimedia the following error is reported by cmake:

      CMake Error at /home/gagi/work/qt6-install-static/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1914 (add_library):
       Target "MediaPlugin" links to target "GStreamer::Gl" but the target was not
       found.  Perhaps a find_package() call is missing for an IMPORTED target, or
       an ALIAS target is missing?
      Call Stack (most recent call first):
       /home/gagi/work/qt6-install-static/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1792 (_qt_internal_add_library)
       /home/gagi/work/git/qt6/qtbase/cmake/QtPluginHelpers.cmake:78 (qt6_add_plugin)
       src/plugins/ivimedia/media_simulator/CMakeLists.txt:9 (qt_internal_add_plugin)
      

      It's possible something goes wrong in
      qt_collect_third_party_deps

      because multimedia is calling qt_find_package(Gstreamer) multiple times, but the first time it's without any components

      qt_find_package(GStreamer PROVIDED_TARGETS GStreamer::GStreamer MODULE_NAME multimedia QMAKE_LIB gstreamer_1_0)
      qt_find_package(GStreamer COMPONENTS App PROVIDED_TARGETS GStreamer::App MODULE_NAME multimedia QMAKE_LIB gstreamer_app_1_0)
      qt_find_package(GStreamer OPTIONAL_COMPONENTS Photography PROVIDED_TARGETS GStreamer::Photography MODULE_NAME multimedia QMAKE_LIB gstreamer_photography_1_0) # special case
      qt_find_package(GStreamer OPTIONAL_COMPONENTS Gl PROVIDED_TARGETS GStreamer::Gl MODULE_NAME multimedia QMAKE_LIB gstreamer_gl_1_0) # special case
      

        Attachments

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

          Activity

            People

            Assignee:
            alexandru.croitor Alexandru Croitor
            Reporter:
            gagi Dominik Holland
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes