Deployment not working on Ubuntu 24.04
-
Hello,
i wrote a simplte Qt.6.11 App with Qtcreator on Linux. The App runs perfekt within Qtcreator.
In my Cmake.txt i wrote the following script:
qt_generate_deploy_qml_app_script(
TARGET MyApp
OUTPUT_SCRIPT deploy_script
)
install(SCRIPT ${deploy_script})This is from the example:
On installation, the application binary will be deployed, including the QML files and the shared libraries and assets of Qt that are used by the project. Again, the resulting directory is self-contained and can be packaged by tools like cpack.
Running with qtcreator gives no error. The deployment status bar gets green.
But where is the resulting directory. I can find it nowhere.
What i am doing wrong?
-
Hi,
Which resulting directory are talking about ?
-
Hi,
i think the folder with the files i can put on a computer without qt and run the application. -
It should be located in the build folder
-
Hello,
i wrote a simplte Qt.6.11 App with Qtcreator on Linux. The App runs perfekt within Qtcreator.
In my Cmake.txt i wrote the following script:
qt_generate_deploy_qml_app_script(
TARGET MyApp
OUTPUT_SCRIPT deploy_script
)
install(SCRIPT ${deploy_script})This is from the example:
On installation, the application binary will be deployed, including the QML files and the shared libraries and assets of Qt that are used by the project. Again, the resulting directory is self-contained and can be packaged by tools like cpack.
Running with qtcreator gives no error. The deployment status bar gets green.
But where is the resulting directory. I can find it nowhere.
What i am doing wrong?
@Qt-Lehrling said in Deployment not working on Ubuntu 24.04:
qt_generate_deploy_qml_app_script(
TARGET MyApp
OUTPUT_SCRIPT deploy_script
)
install(SCRIPT ${deploy_script})This i added to my cmakeLists.text file.
After deployment there must be a folder named deploy_script but there is nothing.
-
That's a generated script in the build folder.
It's called automatically for you. If you want to see its content, there are hidden folders in the build folder.