Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.5.0
-
None
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
- duplicates
-
QTBUG-113769 qt_generate_deploy_qml_app_script generates an unusable deploy script
- Closed