
app folder into the Applications folder and you’re all set. Once the other machines receive the archive, just drag and drop the. If the application runs and does not crash, you’re ready to pass along the zip, tar, or dmg file to other macOS machines.
Qt mac os x deployment archive#
Run the application inside the dmg or zip archive by double clicking on it in the Finder.


If all went well and no fatal errors were reported, you can now test the application by doing one of the following: This is only applicable if you have QML files in your project. This is necessary for the deployment tool to parse the QML files and include the necessary Qt libraries for those QML files. app folder after running macdeployqt on it.Īn important note about the option -qmldir=: the “path” is the absolute path to the QML source files in your project folder. To place the bundle into a disk image for easy distribution, add -dmg to the command. If you have custom libraries, you will need to manually copy them into the bundle after it is created.Īssuming you are in the build directory, if you have no QML files, run: macdeployqt is useful when your application has primarily Qt libraries and no custom libraries. (You can also search for it using the command find / -iname macdeployqt.) Qt Creator does not have this deployment option integrated into its interface so you will need to use it through the command line. It is commonly located at /bin/macdeployqt. To deploy an application you will be making use of macdeployqt, which is a deployment tool included with Qt Creator. Go to Build > Build project “ProjectName” (equivalent to running make on the command line). In the lower left corner of the Qt Creator interface, there is a monitor like icon, click on it and select your project name, and “release” build.

This is equivalent to typing make clean on the command line. To compile in Qt Creator go to Build > Clean Project “ProjectName”. app folder exists in your build directory. If you were able to compile successfully without any errors, you will now see that a.
