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

cmake: Deployment of shared module fails with Xcode (non-ninja) generator during the post build step (not during installation)

    XMLWordPrintable

Details

    • macOS, Windows
    • 757bfef22 (dev), bcb26ad44 (6.7)

    Description

      When building an example (in qtdeclarative) that depends on the `shared` module, the module is not deployed when using a non-Ninja generator, such as the Xcode generator, resulting in:

       

      qrc:/qt/qml/windowembeddingexample/windowembedding.qml:5:1: module "shared" is not installed 
           import shared as Examples 
            

      With Ninja I get:

      [91/91] Linking CXX executable windowembedding.app/Contents/MacOS/windowembedding
      -- Running macOS bundle QML support POST_BUILD routine.
      -- Installing: /Users/torarne/build/qt/6.x/examples/windowembedding/./windowembedding.app/Contents/Resources/qml/QtQuick/qmldir
      -- Symlinking: /Users/torarne/build/qt/6.x/examples/windowembedding/windowembedding.app/Contents/Resources/qml/QtQuick/libqtquick2plugin.dylib
      -- Installing: /Users/torarne/build/qt/6.x/examples/windowembedding/./windowembedding.app/Contents/Resources/qml/QtQml/qmldir
      -- Symlinking: /Users/torarne/build/qt/6.x/examples/windowembedding/windowembedding.app/Contents/Resources/qml/QtQml/libqmlmetaplugin.dylib
      -- Installing: /Users/torarne/build/qt/6.x/examples/windowembedding/./windowembedding.app/Contents/Resources/qml/QtQml/Base/qmldir
      -- Symlinking: /Users/torarne/build/qt/6.x/examples/windowembedding/windowembedding.app/Contents/Resources/qml/QtQml/Base/libqmlplugin.dylib
      -- Installing: /Users/torarne/build/qt/6.x/examples/windowembedding/./windowembedding.app/Contents/Resources/qml/QtQml/Models/qmldir
      -- Symlinking: /Users/torarne/build/qt/6.x/examples/windowembedding/windowembedding.app/Contents/Resources/qml/QtQml/Models/libmodelsplugin.dylib
      -- Installing: /Users/torarne/build/qt/6.x/examples/windowembedding/./windowembedding.app/Contents/Resources/qml/QtQml/WorkerScript/qmldir
      -- Symlinking: /Users/torarne/build/qt/6.x/examples/windowembedding/windowembedding.app/Contents/Resources/qml/QtQml/WorkerScript/libworkerscriptplugin.dylib
      -- Installing: /Users/torarne/build/qt/6.x/examples/windowembedding/./windowembedding.app/Contents/Resources/qml/shared/qmldir
      -- Symlinking: /Users/torarne/build/qt/6.x/examples/windowembedding/windowembedding.app/Contents/Resources/qml/shared/libwindowembedding_shared.dylib
      -- Installing: /Users/torarne/build/qt/6.x/examples/windowembedding/./windowembedding.app/Contents/Resources/qml/QtQuick/Window/qmldir
      -- Symlinking: /Users/torarne/build/qt/6.x/examples/windowembedding/windowembedding.app/Contents/Resources/qml/QtQuick/Window/libquickwindowplugin.dylib 

      The Xcode generated project has a similar step at the end:

      But doesn't seem to produce the same result.

      Attachments

        Issue Links

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              vestbo Tor Arne Vestbø
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes