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

Qt's CMake deployment API not working

    XMLWordPrintable

Details

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

    Description

      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.

       

       

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes