windeployqt does not collect the dll
-
use windeployqt with
--compiler-runtime
switch
https://doc.qt.io/qt-5/windows-deployment.html -
@MajidKamali said in windeployqt does not collect the dll:
--compiler-runtime
--compiler-runtime do I need to write it in the command line or in qt when building the program?
-
Hi,
You need to read the documentation of windeployqt that @MajidKamali pointed you to. It's all there.
-
@Mikeeeeee
hi
its a command line so you use it WITH windeployqt to say it must also copy compiler runtime
The error you showed looks like missing runtime for mingw compiler.If you used QML also you will need to add --qmldir
where you point to the qml files you have.so goto folder where your exe is and something like
windeployqt --compiler-runtime --release --qmldir C:\YOURPATH\qmlfolder MyApp.exe
or use full path to .exe also.
-
@Mikeeeeee said in windeployqt does not collect the dll:
Is there an example and explanation for this command?
windeployqt --qmldir <path-to-app-qml-files> <path-to-app-binary>
Yes its ALL listed in the link
https://doc.qt.io/qt-5/windows-deployment.html -
There is no example for the link. There is only a scant description.
It's not work:windeployqt.exe --qmldir E:\test\build-testQmlAndCpp-Desktop_Qt_5_14_1_MinGW_32_bit-Release2\testQmlAndCpp.exe E:\QTProject\testQmlAndCpp\testQmlAndCpp.pro
It's too not work:
windeployqt --compiler-runtime --release --qmldir E:\test\build-testQmlAndCpp-Desktop_Qt_5_14_1_MinGW_32_bit-Release2\testQmlAndCpp.exe
Is there a working example?
-
@Mikeeeeee
There cannot be a working example as you must fill in the paths to fit your project.
also, you point to \testQmlAndCpp.exe for --qmldir but it must point to the folder where your actual QML files is.
Often the porject foler of the app, unless you put the files in a sub folder.The link list the parameters and explain what each does. please read it.
-
its too not work
windeployqt --compiler-runtime --release --qmldir E:\QTProject\testQmlAndCpp E:\QTProject\testQmlAndCpp\testQmlAndCpp.pro
The documentation does not say what path-to-app-qmlfiles is.
Please explain in more detail how to use this command. -
and if I do this, then some libraries are written in the console, but they are not added to the folder with the. exe file
windeployqt --compiler-runtime --release --qmldir E:\QTProject\testQmlAndCpp E:\test\build-testQmlAndCpp-Desktop_Qt_5_14_1_MinGW_32_bit-Release
-
@Mikeeeeee said in windeployqt does not collect the dll:
The documentation does not say what path-to-app-qmlfiles is.
Well it could not as its where you place them.
Often in the project folder with the other files of the project.