Executable size and dependencies (newbie)
-
Hi,
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 I guess you're building in debug mode? Try to build in release mode, then it should be smaller.
Regarding dependencies: read this http://doc.qt.io/qt-5/windows-deployment.html -
Thanks jsulm,
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.
Screenshot: http://s31.postimg.org/3whk2cixn/s20160627154451.pngThanks!
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:
Screenshots:
http://s31.postimg.org/ekpwexiaj/s20160627160209.png
http://s31.postimg.org/x1kb5qy8r/s20160627160406.png
http://s31.postimg.org/5d29bz0m3/s20160627162620.png
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?
-
HI,
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.