qt_generate_deploy_qml_app_script not working for static Qt 6.4
-
Hello,
I am currently trying to build a QtQuick-App. It was created in Design Studio and can be build and run in both Design Studio and Creator on my development machine (win10, 64bit). Now I want to deploy the App to another target pc (win10, 64bit). So I build a static version of the Qt I am using (6.4.3) with the following configure-flags:../configure.bat -static -release -platform win32-g++ -opensource -confirm-license -prefix C:/Users/u4540/programs_and_libs/Qt-6.4.3-Static/Qt643Static -qt-zlib -qt-libpng -qt-webp -qt-libjpeg -qt-freetype -no-opengl -skip qtactiveqt -skip qtandroidextras -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtlocation -skip qtlottie -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtremoteobjects -skip qtscript -skip qtsensors -skip qtspeech -skip qtsvg -skip qtwayland -skip qtwebglplugin -skip qtwebview -skip webengine -make libs -nomake tools -nomake examples -nomake tests -skip qtvirtualkeyboard
I added this to the CMakeLists.Txt:
qt_generate_deploy_qml_app_script( TARGET ${CMAKE_PROJECT_NAME} FILENAME_VARIABLE deploy_script ) install(SCRIPT ${deploy_script})
However, when trying to configure the build with cmake, it fails:
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:/stash ../MyProjectDir
Output:
CMake Error at C:/Users/u4540/programs_and_libs/Qt-6.4.3-Static/Qt643Static/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:3096 (message): Support for installing runtime dependencies is not implemented for this target platform (Windows, static Qt libs). Call Stack (most recent call first): C:/Users/u4540/programs_and_libs/Qt-6.4.3-Static/Qt643Static/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:3112 (qt6_generate_deploy_qml_app_script) CMakeLists.txt:52 (qt_generate_deploy_qml_app_script) -- Configuring incomplete, errors occurred! See also "C:/Users/.../build/CMakeFiles/CMakeOutput.log". See also "C:/Users/.../build/CMakeFiles/CMakeError.log".
It does however work if I link against the normal (non-static) install of Qt 6.4.3.
Am I doing something wrong? Or is qt_generate_deploy_qml_app_script() Macro not yet available for static Qt 6.4.3?Best Regards
-
Thanks for the information. I did not realize that all dependencies are build into the application on static builds and therefore the deploy-script is not needed anymore. I got the script to run with my normal (dynamically linked) version of Qt and now I get my deployable this way. Thanks again for the help.
-