windeployqt
-
Hi everyone,
I try to make a release of my project, but it's not succesfull till now.
I am using QT creator 6.8.2 wit minGW and CMake on Windows. I have done the following steps:
-build a release
-using windeployqt.exe
-Some qml libs are missing after running windeployqt. (e.g. qml\QtQuick\Particles\particlesplugin.dll)
-I have copies these files manuallyBut it keeps me telling that the qml modules are missing. Does anyone has an idea what to do now?
Thanks.
-
Hi everyone,
I try to make a release of my project, but it's not succesfull till now.
I am using QT creator 6.8.2 wit minGW and CMake on Windows. I have done the following steps:
-build a release
-using windeployqt.exe
-Some qml libs are missing after running windeployqt. (e.g. qml\QtQuick\Particles\particlesplugin.dll)
-I have copies these files manuallyBut it keeps me telling that the qml modules are missing. Does anyone has an idea what to do now?
Thanks.
@Jan-Bakker Do you use --qmldir parameter when calling windeployqt?
Btw. you're using Qt 6.8.2, not QtCreator (which is an IDE).
-
Thank you.
Yes I used --qmldir.
When i search in the output of windeployqt I cannot find anything regarding the qml module.for example:
i have somewhere: import Qt.labs.settingsI tried to implicity add these modules by using
windeployqt --add-plugin-types labssettings --no-translations --release --qmldir "c:\QtBuilds\myprog\qml" "c:\QtBuilds\myprog\appmyprog.exe"
I still get the warning cannot load lib C:\QtBuilds\myprog\qml\Qt\labs\settings\qmlsettingsplugin.dll when i run the program. I even add the location of these map by using engine.addImportPath().
-
I interpreted the error as indicating that the labssettings DLL was not found. After renaming the DLL, I received a different error stating that the DLL was not installed. That made me realize that the first error actually meant there was a missing dependency in labssettings. I identified and copied the missing DLL, which resolved the issue.
In the end, everything is easy.
-