Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Executable size and dependencies (newbie)
This is my 2nd post here :)
I'm getting to know Qt and I created simple QtWidgets like "hello world", text box, command button, ...
I'm curious about the executable size and its dependencies.
For a simple hello world, pressing F5 generated a .exe larger than 1Mb! Yet when I try to run it outside Qt <F5>, it says a lot of dlls are missing.
Can anyone give me some directions here?
Say this hello world would be my 1st release. How do I set it up so I get a proper size for the executable and its dependencies, how do I know which DLLs will I need?
@LeandroA Actually even in debug mode your executable should be much smaller than 1MB!
On which OS are you, which Qt version are you using and what is the compiler?
Yesterday I run it in debug mode pressing <F5> and the executable file was exactly 1.3Mb.
Today I compiled the same using <F5> and I get the .exe with 26Kb.
I'll never know why the difference.
http://doc.qt.io/qt-5/windows-deployment.html was very useful!
configure.exe and nmake.exe shown here (http://doc.qt.io/qt-5/windows-deployment.html ) are missing for me:
Am I missing something?
If I install this "MSVC2013 64-bit" then I can compile projects using it or it is just a "bridge" to the installed MSVC?
If you install a MSVC build of Qt, you also need to install the matching Visual Studio. It's not something that the installer can do for you because it's exclusively provided by Microsoft.
LeandroA last edited by
Excuse my ignorance. :)
I'm getting acquainted with Qt.
Thanks for the patience.