Tips on how to deploy C++ code to work every where

前端 未结 4 922
不思量自难忘°
不思量自难忘° 2021-02-01 19:35

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

4条回答
  •  春和景丽
    2021-02-01 20:20

    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.

提交回复
热议问题