Unsolved question about windeployqt.exe
-
Hello
I'm pretty new to QT and have a question about windeployqt.exe. This app found all dependencies for one of my applications, so it starts fine.
Just for fun, I let it run over another application which already starts without problems on computers where qt is not installed. After this application finished it told me I would need the folder bearer with the file qgenericbearer.dll and the folder translations. For what are these files? It seems that windeployqt thinks I need them but the application is running without them too.
thanks in advance
Anna -
This post is deleted! -
To create that, You need to open Qt command prompt,in that give windeployqt.exe.
And copy .exe file alone in one folder,go to that folder and run windeployqt.exe --quick . -
@Sowjanya thats what I did and then I discovered, that windeployed genereates more files than I seem to need and I'm wondering why and if there is a way only to get the files that I really need. From 60 files I deleted 51 files that it copied to my folder and the application is still running.
-
@DeveloperDeveloper35
To run exe file alone in other computers requires dlls . -
@Sowjanya The question was: why does windeployqt add DLLs which are not required/used by the application...
-
@jsulm Thank you yes thats what I want to know. I tried my reduced set of files on another computer and it runs fine, so I need 51 files not but why are they collected by the tool
-
@DeveloperDeveloper35 I'm not sure. One possibility is that some of the DLLs your app is using use that one bearer DLL.
-
-
@jsulm But if this dll would be really used, then my software shouldn't work proper when I delete the dll. But it runs fine which indicates, that the dll is unused
-
@DeveloperDeveloper35 It depends. If a lib is loaded at runtime then your app can work without it as long as it is not used. This is how plug-ins work: the app is not linked at link time against the plug-ins, instead plug-ins are loaded at runtime dynamically.