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

macdeployqt fails for QtMultimedia QtQuick App

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.5.0
    • None
    • Mac OS X 10.10

      Deployed multimedia apps have a missing dependency on QtMultimediaQuick_p.framework. Steps to reproduce:

      1. Create a new Qt Quick application for clang_64 target and change the main.qml file to something like:

      main.qml
      import QtQuick 2.4
      import QtQuick.Window 2.2
      import QtMultimedia 5.0
      
      Window {
          visible: true
          Video { }
      }
      

      2. Add QT += multimedia to the pro file

      3. Run the macdeployqt tool on the created app bundle with the -qmldir option

      Result: The resulting app bundle crashed on startup because of missing QtMultimediaQuick_p framework:

      qrc:/main.qml:3 plugin cannot be loaded for module "QtMultimedia": Cannot load library [...]/build-DeployTest-Desktop_Qt_5_5_0_clang_64bit-Debug/DeployTest.app/Contents/PlugIns/quick/libdeclarative_multimedia.dylib: (dlopen([...]/build-DeployTest-Desktop_Qt_5_5_0_clang_64bit-Debug/DeployTest.app/Contents/PlugIns/quick/libdeclarative_multimedia.dylib, 5): Library not loaded: @rpath/QtMultimediaQuick_p.framework/Versions/5/QtMultimediaQuick_p
        Referenced from: [...]/build-DeployTest-Desktop_Qt_5_5_0_clang_64bit-Debug/DeployTest.app/Contents/PlugIns/quick/libdeclarative_multimedia.dylib
        Reason: image not found)
      

      Related:
      QTBUG-46981

      Probably also related:
      QTBUG-45977
      QTBUG-46404
      QTBUG-47221

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

            sorvig Morten Sørvig
            alexleutgoeb Alex Leutgöb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes