I am trying to deploy a QML application using
C:\Qt59\5.10.1\msvc2015_64\bin\windeployqt.exe --dir e:\deptest --qmldir e:\ais e:\build-ais-Desktop_Qt_5_10_1_MSVC2015_64bit2-Release\release\ais.exe
This copies all the needed files to e:\deptest, however the exe file I am calling windeployqt on is not being copied. If I copy it to the target folder manually I can run it just fine.
Windeployqt finishes without error, however I am not quite sure whether this is expected behavior, or whether am doing something wrong here.
Do I have to copy the exe myself, or am I missing something?
From the tool's documentation:
The normal mode of operation is that you copy your
*.exeinto a deployment directory and pointwindeployqtto the executable. It then copies all dependencies to this deployment folder.Using the
--diroption is - as far as I know - not the "usual" way of running it. I guess it is rather useful if you plan to set up e.g. an installer where the Qt files and your application are several "components" and can be updated individually (which would save bandwidth as your app would be updated more often then the Qt libraries). Using the--diroption allows you to have all required Qt dependencies in a dedicated directory which can be packaged individually.