title: How to create executable file for a Qt Application?
body: <p>I've been searching on the internet for some useful and clear information about this, it's annoying that such a trivial thing is so hard to do.</p>
  
  <p>What I need is to create an executable file for my Qt project, in order to run it in other computers. My project runs nicely in the Qt Creator, but when I try to run the executable created in the release folder I get errors about some dll missing, and though I have put all of them in the same directory of my .exe I now got some errors about entrypoints in procedures inside the dll (QtCore4.dll).</p>
  
  <p>The solution looks like to be a static linking, I've found many information about it, but none of them really helped me. Here is what I have tried so far:</p>
  
  <ul>
  <li>Using the executable created in the release folder as I said above.</li>
  <li>Static Linking, following this tutorial (and many others, all almost the same thing): <a href="http://doc.qt.io/qt-4.8/deployment-windows.html" rel="noreferrer">http://doc.qt.io/qt-4.8/deployment-windows.html</a> but I get the following error during the "configure -static": NMAKE : fatal error U1077: '"c:\Arquivos de programas\Microsoft Visual Studio 9.
  0\VC\BIN\cl.EXE"' : return code '0x2'
  Stop.
  Building qmake failed, return code 2</li>
  </ul>
  
  <p>For that I couldn't find any solution, so here I am, just trying to create an executable file for my Qt project, hope you guys can give me some light here.</p>