Deploy QT applicaton in Windows sytem

Deploy QT application for windows

description

QT has a utility can help you to prepare all of dependence dynamic libraries, it can let you deploy application more convenient.

pre-condition

  1. assume QT source code in path <src_path>, and all of QML files are stored in <src_path>\qml
  2. a built application file <application> and stored in <release> folder
  3. QT utilities are stored in <qt_common_folder>/bin (e.g. c:\Qt\x.xx\mingw_xx\bin)

procedure

cd <release>
<qt_common_folder>\bin\windeployqt.exe --qml_dir <src_path>\qml <application>

this utility will copy the common libraries to the release folder