title: How to link mysql library to Qt compiled statically?
body: <p>I have trouble lately with linking mysql library to Qt Static. Here what I had done so far:</p>
  
  <p>1) Compile QT 5.4.2 static</p>
  
  <p>2) Compile mysql plugin driver</p>
  
  <p>3) After that I copy .dll and .a file to both static and non-static QT's plugin folder</p>
  
  <p>4) For non-static QT, everything go normal, but I can't compile project with static QT</p>
  
  <p>In my .pro file</p>
  
  <pre><code>LIBS += -LC:/Qt/Static/5.3.1/plugins/sqldrivers -lqsqlmysql
  
  QTPLUGIN += libqsqlmysql
  </code></pre>
  
  <p>Error : <code>:-1: error: cannot find -llibqsqlmysql</code></p>
  
  <p>I also get a warning on .pro file :</p>
  
  <pre><code>Project WARNING: Plugin class name could not be determined for libqsqlmysql plugin.
  </code></pre>
  
  <p>Please help</p>