I\'m not talking about making portable code. This is more a question of distribution. I have a medium-sized project. It has several dependencies on common libraries (eg opens
Try use cqtdeployer. This utility can search and collect all the dependencies of your application, and create an installer for it.
Example for use :
cqtdeployer -bin myApp deploySystem
CQtDeployer is available on the snap-store and on GitHub Releases. However, the snap version is not suitable for deploying system libraries. Therefore, you only need to use the version from the installer on GitHub.
You can also create an installer add qif option to the end.
cqtdeployer -bin myApp deploySystem qif
After execution, get an installer of the following form:
This utility can work both with Windows and with Linux. The set of options is the same on all platforms.
If your project consists of many libraries then use the libDir and recursiveDepth options. This will allow cqtdeployer to find your additional libraries.
cqtdeployer -bin myApp deploySystem qif -libDir /path/to/my/Libs -recursiveDepth 5
For more information, read the project wiki.