Solved windeployqt does not collect the dll
Windeployqt does not collect the dll.
If you build in a 64-bit compiler, then nothing happens at all, and if in 32, I get this error when starting the program
use windeployqt with
You need to read the documentation of windeployqt that @MajidKamali pointed you to. It's all there.
There are no clear examples in the documentation, it is not understood. Apparently you have worked with this a lot and it is clear to you without documentation. How do I build the necessary dll files in a program with qml?
Is there an example and explanation for this command?
windeployqt --qmldir <path-to-app-qml-files> <path-to-app-binary>
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.
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?
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
it is work
windeployqt --qmldir E:\QTProject\testQmlAndCpp E:\test\build-testQmlAndCpp-Desktop_Qt_5_14_1_MinGW_32_bit-Release