Deploy Qt Quick Applications on Windows with windeployqt

Deploying Qt applications on windows, can be made with windeployqt.exe. It can be found in „C:\Qt\5.4\mingw491_32\bin“

Deploy Application

1. Open CMD which is settet with Qt Environment

cmd_qt

2. change to directory where your binary is.

cd C:\path\to\folder\release

example:

cd C:\Users\fecub\Documents\Qt.workspace\build-HCWorkFlow-Desktop_Qt_5_4_0_MinGW_32bit-Release

3. Type the following command:

windeployqt.exe . –qmldir \project\folder\

„.“ = currentDirectory

„–qmldir“ = path where the qml files is. Your project folder

example:

windeployqt.exe .\hcworkflow_Main\release  –qmldir ..\hcworkflow\hcworkflow_Main\

4. Last step execute the command and you get this project structure.

project_structure

Now you can zip it and share it with other

Note:

I had other libraries in my Project/build tree, which depends on QtSql and QtXml. I coppied the dll’s to my release folder and the libmysql.dll also. I didn’t found the command for defining the other libraries for my project and I must copy it manually.

2 Antworten zu “Deploy Qt Quick Applications on Windows with windeployqt

Schreibe einen Kommentar

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

WordPress.com-Logo

Du kommentierst mit Deinem WordPress.com-Konto. Abmelden / Ändern )

Twitter-Bild

Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )

Facebook-Foto

Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s