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

[6.2.0] 'Qml' is missing from CMakeLists.txt from QtWebView, building from sources fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.2.0 Alpha
    • 6.2.0
    • WebView
    • None
    • bcd1fc6a311c8fdb2e5f792f7179feef12832357 (qt/qtwebview/6.2) 65f7d9de4d784896df7e3caf8197825e2c2bf7e9 (qt/qtwebview/dev)

    Description

      It looks like 'Qml' component is missing from qtwebview's CMakeLists.txt. Trying to do a cross compilation for QNX against prebuilt Qt binary fails with:

        -- Running syncqt for module: 'QtWebView' 
      CMake Warning at qtbase/cmake/QtRpathHelpers.cmake:26 (message):
        No known RPATH_REL_BASE for target platform.
      Call Stack (most recent call first):
        qtbase/cmake/QtRpathHelpers.cmake:112 (qt_compute_relative_rpath_base)
        qtbase/cmake/QtModuleHelpers.cmake:648 (qt_apply_rpaths)
        qtwebview/src/webview/CMakeLists.txt:5 (qt_internal_add_module)
      CMake Warning at qtbase/cmake/QtRpathHelpers.cmake:26 (message):
        No known RPATH_REL_BASE for target platform.
      Call Stack (most recent call first):
        qtbase/cmake/QtRpathHelpers.cmake:112 (qt_compute_relative_rpath_base)
        qtbase/cmake/QtPluginHelpers.cmake:390 (qt_apply_rpaths)
        ../../qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:114 (qt_internal_add_plugin)
        qtwebview/src/imports/CMakeLists.txt:10 (qt_internal_add_qml_module)
      CMake Error at ../../qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:1292 (message):
        Unable to configure qml module.      "find_package(Qt${QT_VERSION_MAJOR} CONFIG COMPONENTS Qml)" is missing.
      Call Stack (most recent call first):
        ../../qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:380 (_qt_internal_qmldir_defer_file)
        ../../qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:150 (qt6_add_qml_module)
        qtwebview/src/imports/CMakeLists.txt:10 (qt_internal_add_qml_module)

      Attachments

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

        Activity

          People

            stromme Christian
            mipohjan Milla Pohjanheimo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes