-2

I want to deploy Qt application with different Windows system. So I generated exe file for my application using windeployqt tools which consists of exe(Mingw) file with additional folder and dll file.

My requirement is how to generate exe(MSVC compiler based) file will deploy in different computer machines.

Thanks In advance

Kiran Prusty
  • 47
  • 1
  • 8
  • 2
    You create an installer which usually does always extract your files. If you want a single application without an installer you must build statically. – user3606329 May 04 '18 at 13:39
  • Why are you downloading NSIS from a 3rd-party website? Its home is on SourceForge.net – Anders May 04 '18 at 14:33
  • @user3606329 Can you please help me out how to build statically – Kiran Prusty May 04 '18 at 16:39
  • You need to compile the Qt source-code statically. This usually takes 2-3 hours. Then you can link the new static qmake in your kit to build single .exes, but beware they are bigger in size, such as 10mb for an empty hello world app. – user3606329 May 04 '18 at 19:28
  • @user3606329 Can you please provide any resources,examples,steps to build statically. And the final generated static file will contains only .exe or still it will generate few for more additional files like dll,folder? – Kiran Prusty May 05 '18 at 17:25
  • See ny previous post: https://stackoverflow.com/questions/49982419/how-to-release-a-qt-c-application-on-linux-and-windows/49988989#49988989 – user3606329 May 05 '18 at 17:26

1 Answers1

0

==>Static Compilation for Windows -

https://www.youtube.com/watch?v=lwX_urJJOf8

==>Static Compilation for Mac/Linux -

https://retifrav.github.io/blog/2018/02/17/build-qt-statically/

Kiran Prusty
  • 47
  • 1
  • 8