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

Default qt_generate_deploy_qml_app_script does not deploy QtWebEngineProcess(d).exe to where it should be

    XMLWordPrintable

Details

    • Windows
    • e56d98cea (dev), b856d2f24 (6.8), dbf94e2d1 (6.7)

    Description

      Can be reproduced by any WebEngine project, e.g. nano browser example. But do the following modifications:
      1. Add install script to CMakeLists.txt, e.g.

      qt_generate_deploy_qml_app_script(
          TARGET quicknanobrowser
          OUTPUT_SCRIPT deploy_script
          MACOS_BUNDLE_POST_BUILD
          NO_UNSUPPORTED_PLATFORM_ERROR
          DEPLOY_USER_QML_MODULES_ON_UNSUPPORTED_PLATFORM
      )
      install(SCRIPT ${deploy_script})
      

      at the end
      2. Set CMAKE_INSTALL_PREFIX to somewhere you have privilege to write to.
      3. Also check "install" as target

      Then inside installation, you can see QtWebEngineProcess(d).exe being installed to right under top-level directory. The correct location should be under /bin. That is where Qt looks for by default (For Qt installations, this is QTDIR/libexec (Linux) or QTDIR\bin (Windows).):
      https://doc.qt.io/qt-6/qtwebengine-deploying.html#deploying-qt-webengine-processes

      Workaround is simple: manually move it or set QTWEBENGINEPROCESS_PATH. But default behavior does not work out of the box is weird and needs fix.

      Attachments

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

        Activity

          People

            orkun.tokdemir Orkun Tokdemir
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes