title: Qt windows libmysql.dll
body: <p>I have installed <code>MySQL 5.1.49</code> and the <code>binary QT 4.6.2 for Visual Studio 2008</code>. I configured Qt as follow:</p>
  
  <pre><code>C:\Qt&gt;configure -static -no-webkit -plugin-sql-sqlite -plugin-sql-mysql -I C:\mysql\include -L C:\mysql\lib\optC:\Qt\src\plugins\sqldriver
  </code></pre>
  
  <p>Everything went fine, no errors. When I run <code>nmake</code> on my application everything runs fine, no errors as well. However when I execute my application under the debug folder I get a popup saying <code>"Driver not loaded"</code> (I have <code>QT += sql</code> under my <code>project.pro</code>)</p>
  
  <p>If I goto <code>C:\Qt\plugins\sqldrivers</code> I dont see any <code>libmysql</code>, or any <code>*mysql.dll</code> only <code>qsqlmysql.obj and qsqlmysqld.obj</code> (there are files such as: <code>qsqlite4.dll, qsqlpsql4.dll</code> etc.)</p>
  
  <p>I did try to build it manually by doing:</p>
  
  <pre><code>cd %QTDIR%\src\plugins\sqldrivers\mysql
  C:\Qt\src\plugins\sqldrivers\mysql&gt;qmake "INCLUDEPATH+=C:\mysql\include" "LIBS+=C:\mysql\lib\opt\libmysql.lib" mysql.pro
  nmake
  </code></pre>
  
  <p>Everything compiles fine, no errors. However, I still don't find any libmysql.dll generated. Only file found is under <code>C:\mysql\bin\libmySQL.dll</code></p>
  
  <p>I have all the includes for MySQL under <code>C:\mysql\include</code> and the libraries under <code>C:\mysql\lib\opt</code></p>
  
  <p>Any ideas what could be the problem? Thanks</p>