title: How to build Qt 5 statically
body: <p>I worked with Qt Creator 2.6.2 based on Qt 5.0.1 in a linux environnement. The application works fine on the computer where I made the compilation but  when I execute it on another computer I got errors like : </p>
  
  <pre><code>error while loading shared libraries: libQt5WebKitWidgets.so.5: cannot open shared object file: No such file or directory
  error while loading shared libraries: libxslt.so.1: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>I found some solutions in this <a href="https://stackoverflow.com/questions/1011197/qt-static-linking-and-deployment">link</a> (some links are dead).</p>
  
  <p>So I added to my .pro file this line : </p>
  
  <pre><code>CONFIG += static
  </code></pre>
  
  <p>To compile  my project statically.</p>
  
  <p>I thought the file I'll get will be larger but I got the same size and the same errors.</p>
  
  <p>Thank you.</p>