Is it possible to detect compiled 'exe' dependencies? (Windows)
-
wrote on 3 May 2022, 07:51 last edited by
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.
-
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.
-
wrote on 3 May 2022, 08:08 last edited by
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?
-
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?
Lifetime Qt Championwrote on 3 May 2022, 08:13 last edited by jsulm 5 Mar 2022, 08:14@Curtwagner1984 I did not use this tool much. Maybe you can filter the dependencies by name like *qt5*.dll ?
-
@Curtwagner1984 I did not use this tool much. Maybe you can filter the dependencies by name like *qt5*.dll ?
wrote on 3 May 2022, 08:29 last edited by Curtwagner1984 5 Mar 2022, 11:23@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].
1/5