Compiling a QT program under Windows - dependencies
For the sake of interest, I decided to touch Qt.
Accordingly, I downloaded Qt Creator, created a project, played with actions and other things. And I wanted to build this project into an .exe file.
Debug within Creator was performed perfectly, but after Build - .exe gave me the dependency requirement mingwm10.dll. ')
Climbed on Google, and after some time searching realized copy
C: \ QT \ QTCreator \ bin \ mingwm10.dll, as well as C: \ QT \ QTCreator \ qt \ bin \ QtCore4.dll C: \ QT \ QTCreator \ qt \ bin \ QtGui4.dll
in the folder with build. Only after that it worked.
But the problem remains the subsequent distribution of the program. Is it really necessary to make an installer to transfer the above files to System32 in order to transfer your creation to another person with a size of 100 kilobytes?
Dear experts, educate me - is it really impossible to put together a project with dependencies? Maybe somehow you can reduce the amount of 13 megabytes of libraries to run 100 kilobytes of the program?
UPD: Connoisseurs write that libraries are required.
The choice is small then - either to pack with NSIS (it turned out 4.5 megabytes per empty project), or to make a network installer with an auxiliary program that will pull dependencies, or make solid - as it is.
Even if you build libraries static - you get just bloated .exe file