Tutorial by Examples

Qt provides a deployment tool for Windows: windeployqt. The tool inspects a Qt application executable for its dependecies to Qt modules and creates a deployment directory with the necessary Qt files to run the inspected executable. A possible script may look like: set PATH=%PATH%;<qt_install_pre...
It is possible to run windeployqt and macdeployqt from CMake, but first the path to the executables must be found: # Retrieve the absolute path to qmake and then use that path to find # the binaries get_target_property(_qmake_executable Qt5::qmake IMPORTED_LOCATION) get_filename_component(_qt_bi...
Qt offers a deployment tool for Mac: The Mac Deployment Tool. The Mac deployment tool can be found in QTDIR/bin/macdeployqt. It is designed to automate the process of creating a deployable application bundle that contains the Qt libraries as private frameworks. The mac deployment tool also deploys...
There is a a deployment tool for linux on GitHub. While not perfect, it is linked to from the Qt wiki. It's based conceptually on the Qt Mac Deployment Tool and functions similarly by providing an AppImage. Given that a desktop file should be provided with an AppImage, linuxdeployqt can use that to...

Page 1 of 1