Is it possible to detect compiled 'exe' dependencies? (Windows)
-
Greetings,
In the windeployqt.exe documentation, it says that it detects the dependencies the file requires and copies over the necessary files.
Is it possible to do it without windeployqt.exe? If I want to detect the decencies myself and copy the files over with a script, can it be possible?
I'm on Qt 4, so as far as I know windeployqt started with Qt 5.
-
-
Thanks, I actually tried this, but it seems the scope is too broad. Is it possible to narrow it's output to only QT decencies?
-
@Curtwagner1984 I did not use this tool much. Maybe you can filter the dependencies by name like *qt5*.dll ?
-
@jsulm Searching online I found this https://github.com/lucasg/Dependencies tool which supposed to be an updated version of the decencies walker.
I managed to use cmd to output some of the dependencies my app needs. In CMD it prefixes the needed DLLS by category, for example it writes
[WellKnownDlls] KERNEL32.dll : C:\WINDOWS\SysWOW64\kernel32.dll
. So as far as I'm concerned none of the 'well known' DLL's should be copied.EDIT:
I ended up making a python script that parses the output of this app and copies over files marked as [Not Found].