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

qt_generate_deploy_qml_app_script deployed application cannot launch on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • None
    • 6.10.0
    • Build System: CMake
    • None
    • Linux/Wayland, Linux/X11

      I use the following cmake script to deploy my application:

          install(FILES "$<TARGET_FILE:Qt6::QWaylandIntegrationPlugin>"
              DESTINATION "${QT6_INSTALL_PLUGINS}/platforms"
          )
          install(FILES "$<TARGET_FILE:Qt6::QWaylandXdgShellIntegrationPlugin>"
              DESTINATION "${QT6_INSTALL_PLUGINS}/wayland-shell-integration"
          )
          install(FILES "$<TARGET_FILE:Qt6::WaylandClient>"
              DESTINATION "${CMAKE_INSTALL_LIBDIR}"
          )
          install(CODE "
          file(CREATE_LINK         
          \${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/$<TARGET_FILE_NAME:Qt6::WaylandClient>
              \${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libQt6WaylandClient.so.6
          SYMBOLIC
          )
          ")
      
      qt_generate_deploy_qml_app_script(
          TARGET manipula
          OUTPUT_SCRIPT deploy_script
      )
      install(SCRIPT ${deploy_script})
      

      This is a work around for 6.10.0. But on 6.10.0, the deployed application cannot launch. It just hangs there without any output, and the GUI does not appear. The original compiled application can launch normally. Only the deployed one fails.

      I tried the following combinations:

      GPU: AMD, NVidia
      QPA platform: xcb, wayland
      Linux Distro: Opensuse 16, Ubuntu 25.10

      None of them works. 

        1. tree_6.10.txt
          21 kB
        2. tree_6.9.txt
          20 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtbuildsystem Qt Build System Team
            xuzhongxing2020 zhongxing xu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes