CQtDeployer 1.6.2351.ec4840f
CQtDeployer helps you to extract all libraries your executable depends on and to create a launch script for your application.
Quick Guide

How to deploy project with cqtdeployer.

  1. First one you need to install cqtdeployer into your platform

    • Snap (14 more linux destributions):
      sudo snap install cqtdeployer
      Or

    Install from snap store and add all requirement permissions.

    Download from Snap Store

  2. Build your project on release mode.
  3. Deploy yor executable file.
    • For Linux systems:
      bash
      cqtdeployer -bin myexecutable
    • For Windows systems: bash cqtdeployer -bin myexecutable.exe -qmake C:/Qt/5.15.0/min_gw/bin/qmake.exe
    • For crossplatform build (Linux -> Windows) bash cqtdeployer -bin myexecutable.exe -qmake ~/crossbuildet-Qt/5.15.0/min_gw/bin/qmake

Extra options

If you use extra libraries, just add path for cqtdeployer to used libs.

bash
cqtdeployer -bin myexecutable -libDir /PathToMyExtraLibs

If you want find libraries recursively from libDir path, just add recursive Depth option.

bash
cqtdeployer -bin myexecutable -libDir /PathToMyExtraLibs -recursiveDepth 5

If you application use qml, just add qmlDir option

bash
cqtdeployer -bin myexecutable -libDir /PathToMyExtraLibs -recursiveDepth 5 -qmlDir /path/to/my/qml/sources

If you want create simple installer for your application just add gif option.

cqtdeployer -bin myexecutable -libDir /PathToMyExtraLibs -recursiveDepth 5 -qmlDir /path/to/my/qml/sources qif

If you use system libraries from system PATH, just add deploySystem option.

Warning: snap version do not have permision to system files. To deploy system libraries use the cqtdeployer version from the installer

cqtdeployer -bin myexecutable -libDir /PathToMyExtraLibs -recursiveDepth 5 -qmlDir /path/to/my/qml/sources qif deploySystem

If you have any problems with use cqtdeployer then ask you questions on the official github issues page.

For more options of CQtDeploye see oficial documentation.