Deploying on desktop platforms
You have seen that there's a lot to consider when deploying a Qt application. Fortunately, Qt provides a tool that can assist us in this process by scanning the generated application binary, identifying all dependencies, and copying them to the deployment directory. We will deploy our application on various platforms to achieve different objectives, but the concepts will remain the same. Once we have our binary built, the first thing we need to do is add the dependencies so that the user can execute the application without difficulties.
There are two ways in which we may load the dependencies. We can do it manually or use certain tools that are provided by the Qt framework or by a third party. On Windows, we can use windeployqt
to load our dependencies. On macOS, we can use macdeployqt
to load our dependencies for our binary. There is also another tool called linuxdeployqt
that you can use to add the dependencies to your binary. linuxdeployqt
...