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

wasm: declarative app builds result in "Qt6::qt_plugins-NOTFOUND".

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6.0.0
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:
      None
    • Platform/s:
      WebAssembly

      Description

      When building the quick animation example for webassembly, using the WIP patch for cmake support for wasm, I get this error:

      CMake Error at /Users/lpotter/development/builds/qt5-base/lib/cmake/Qt6Qml/Qt6QmlPlugins.cmake:48 (get_target_property):
      get_target_property() called with non-existent target
      "Qt6::qt_plugins-NOTFOUND".
      Call Stack (most recent call first):
      /Users/lpotter/development/builds/qt5-base/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:122 (include)
      /Applications/CMake.app/Contents/share/cmake-3.19/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
      /Users/lpotter/development/builds/qt5-base/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:86 (find_dependency)
      /Users/lpotter/development/builds/qt5-base/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:40 (include)
      /Users/lpotter/development/builds/qt5-base/lib/cmake/Qt6/Qt6Config.cmake:80 (find_package)
      CMakeLists.txt:20 (find_package)

      CMake Error at /Users/lpotter/development/builds/qt5-base/lib/cmake/Qt6Qml/Qt6QmlPlugins.cmake:54 (get_target_property):
      get_target_property() called with non-existent target
      "Qt6::qt_plugins-NOTFOUND".
      Call Stack (most recent call first):
      /Users/lpotter/development/builds/qt5-base/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:122 (include)
      /Applications/CMake.app/Contents/share/cmake-3.19/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
      /Users/lpotter/development/builds/qt5-base/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:86 (find_dependency)
      /Users/lpotter/development/builds/qt5-base/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:40 (include)
      /Users/lpotter/development/builds/qt5-base/lib/cmake/Qt6/Qt6Config.cmake:80 (find_package)
      CMakeLists.txt:20 (find_package)

      – Configuring incomplete, errors occurred!
      See also "/Users/lpotter/development/builds/animation/CMakeFiles/CMakeOutput.log".

       

      Digging into this, I find, on line 43 of Qt6QmlPlugins.cmake:

      1. The code in here uses the properties defined in qt_import_plugins (Qt6CoreMacros.cmake)
         
        Digging into Qt6CoreMacros.cmake, on line 555 of Qt6CoreMacros:
      2. TODO : support qml plug-ins.
        function(qt6_import_plugins target)
         

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              lpotter Lorn Potter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes