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

Qt's CMake deployment API not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.5.0
    • None
    • macOS

      I tried to use the CMake deployment API presented here without success: https://www.qt.io/blog/cmake-deployment-api

      The following code in the blog post works using regular Qt binaries but fails when using the recipe from conan center index:

      qt_generate_deploy_app_script(
          TARGET MyApp
          OUTPUT_SCRIPT deploy_script
          NO_UNSUPPORTED_PLATFORM_ERROR
      )
      install(SCRIPT ${deploy_script}) 

      Here is the output despite I use the shared version of Qt:

      Support for installing runtime dependencies is not implemented for this target platform (Darwin, static Qt libs).

      Looking at the code, I noticed that QT6_IS_SHARED_LIBS_BUILD is not defined.

      It is defined here: /path/to/qt/lib/cmake/Qt6Core/Qt6CoreConfigExtras.cmake but apparently not handled by the conan toolchain.I tried to add it manually to the toolchain but I had other errors and prefered stop exploring that way.

      I don't know how Qt is involved in conan center index but I wondered if you would have an idea to help make this API works when using conan.

       

       

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

            jbornema Joerg Bornemann
            martindelille Martin Delille
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes