Still trying to Deploy... using windeployqt.exe
-
@LeLev have you tried running procmon with your app? it might give you a clue as what it is doing an when it dies.
https://technet.microsoft.com/sysinternals/processmonitor.aspx@kenchan THX.
There are more than 1000 operations about my application when i run procmon and then try to run my app.Most of time result is SUCCESS
But i have this :
OPERATION : CreateFile
PATH :C:\Users\lev\Desktop\winDep\QtQuick.2.8
RESULT: NAME NOT FOUND Desired Access: Read
OPERATION :CreateFile
PATH : C:\Users\lev\Desktop\winDep\qml\QtQuick.2.8
RESULT : PATH NOT FOUND Desired Access: Read Attributes
OPERATION: CreateFile
PATH : C:\Users\lev\Desktop\winDep\QtQuick.2 NAME NOT FOUND Desired Access: Read Attributes,
OPERATION: CreateFile
PATH : C:\Users\lev\Desktop\winDep\QtQuick\Window.2.2 PATH NOT FOUNDI have PATH NOT FOUND on every Qt module and even my Classes
in my code i have
qmlRegisterType<ClientCN16K>("com.Meca.ua.cn16k",1,0,"MecaUAClient"); qmlRegisterType<Machine>("com.Meca.ua.cn16k",1,0,"Machine");and procmon says :
OPERATION : CreateFile
PATH: C:\Users\lev\Desktop\winDep\com\Meca\ua\cn16k.1.0
RESULT : PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/aOPERATION CreateFile
PATH :C:\Users\lev\Desktop\winDep\com\Meca\ua\cn16k.1.0
RESULT : ATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/aOPERATION CreateFile
PATH :C:\Users\lev\Desktop\winDep\com\Meca\ua.1.0\cn16k
RESULT : PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a...
-
@kenchan THX.
There are more than 1000 operations about my application when i run procmon and then try to run my app.Most of time result is SUCCESS
But i have this :
OPERATION : CreateFile
PATH :C:\Users\lev\Desktop\winDep\QtQuick.2.8
RESULT: NAME NOT FOUND Desired Access: Read
OPERATION :CreateFile
PATH : C:\Users\lev\Desktop\winDep\qml\QtQuick.2.8
RESULT : PATH NOT FOUND Desired Access: Read Attributes
OPERATION: CreateFile
PATH : C:\Users\lev\Desktop\winDep\QtQuick.2 NAME NOT FOUND Desired Access: Read Attributes,
OPERATION: CreateFile
PATH : C:\Users\lev\Desktop\winDep\QtQuick\Window.2.2 PATH NOT FOUNDI have PATH NOT FOUND on every Qt module and even my Classes
in my code i have
qmlRegisterType<ClientCN16K>("com.Meca.ua.cn16k",1,0,"MecaUAClient"); qmlRegisterType<Machine>("com.Meca.ua.cn16k",1,0,"Machine");and procmon says :
OPERATION : CreateFile
PATH: C:\Users\lev\Desktop\winDep\com\Meca\ua\cn16k.1.0
RESULT : PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/aOPERATION CreateFile
PATH :C:\Users\lev\Desktop\winDep\com\Meca\ua\cn16k.1.0
RESULT : ATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/aOPERATION CreateFile
PATH :C:\Users\lev\Desktop\winDep\com\Meca\ua.1.0\cn16k
RESULT : PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a...
-
To add my 2 cent,
Recently I had some issues with
windeployqtturned out, that all needed files were copied, but from the wrong directory.I ended up replacing all files and folders manualy, than the application worked.
-
windeployqt helps but it isn't a solution.
You should use qt.conf to setup where the qt app should search the plugins.
If you need a plugin that requires a specia qt dll, windeployqt can't help you. If you are using qml, the qml subfolder has to be added manually.
Please have a look at my qt apps, just to have an idea on how I share it.
http://www.denisgottardello.it/QtComPort/index.php
I normally add all the dlls and the plugins to prevent problems. -
windeployqt helps but it isn't a solution.
You should use qt.conf to setup where the qt app should search the plugins.
If you need a plugin that requires a specia qt dll, windeployqt can't help you. If you are using qml, the qml subfolder has to be added manually.
Please have a look at my qt apps, just to have an idea on how I share it.
http://www.denisgottardello.it/QtComPort/index.php
I normally add all the dlls and the plugins to prevent problems.@mrdebug said in Still trying to Deploy... using windeployqt.exe:
If you are using qml, the qml subfolder has to be added manually.
Thx @mrdebug ! i just addes qml subfolder + qt.conf file
http://www.tripleboot.org/?p=536 //nice article Here
//qt.conf
[Paths]
Plugins=pluginsNow its workink perfectly!
Thank you very much everybody !
-
Hi,
Out of curiosity, which version of Qt and
windeployqtare you using ? -
@SGaist hello,
Im using Qt 5.10.0 MinGW32bit2
windeployqt 5.10.0.0Can someone tell me how to add 'Line number information' to get it in procmon please ?
Thanks
@LeLev
FYI, I found this tool quite useful when I first triedwindeployqt:
https://github.com/lucasg/Dependencies
This is a modern, open source version of the now obsoleteDependency Walker.Just open your .exe file (the one in your deployment folder) in it.

It showed that I forgot to copy my fftw dlls to my deployment folder... and shows the other system dll's it requires.
-
@LeLev
FYI, I found this tool quite useful when I first triedwindeployqt:
https://github.com/lucasg/Dependencies
This is a modern, open source version of the now obsoleteDependency Walker.Just open your .exe file (the one in your deployment folder) in it.

It showed that I forgot to copy my fftw dlls to my deployment folder... and shows the other system dll's it requires.
@Diracsbracket Thx. I will check that tool.
-
It's 2025 and I have the same problem with Windows 10 and Qt6.10. I really do wish this were automated in Qtcreator. I can't understand why that would be hard because, after all, Qtcreator must know where all the required dll files are or it couldn't run the user-developed app either. Why can't qtcreator perform the copying of the required dependencies automatically?
I gave up on windeployqt and now I just set the Windows path to enable the apps to find the dependencies. -
It's 2025 and I have the same problem with Windows 10 and Qt6.10. I really do wish this were automated in Qtcreator. I can't understand why that would be hard because, after all, Qtcreator must know where all the required dll files are or it couldn't run the user-developed app either. Why can't qtcreator perform the copying of the required dependencies automatically?
I gave up on windeployqt and now I just set the Windows path to enable the apps to find the dependencies.@montanaviking said in Still trying to Deploy... using windeployqt.exe:
It's 2025 and I have the same problem with Windows 10 and Qt6.10
I really do wish this were automated in QtcreatorCan Visual Studio or VSCode or any other IDE do this?!
Qtcreator must know where all the required dll files are or it couldn't run the user-developed app either.
QtC only knows if the paths were set beforehand... This is what your "kit" does.
If you mis-configure your kit... QtC knows nothing... how should it know?!