<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error creating MySQL drivers for QT5.1(mysql.h no such file)]]></title><description><![CDATA[<p dir="auto">Hi.<br />
I'm trying create the drivers for MySQL to connect to QT5.1. Below is my set-up process and the error that it picks up, mysql.h no such file.</p>
<p dir="auto">Setting up environment for Qt usage...</p>
<p dir="auto">C:\Qt51\5.1.0\mingw48_32&gt;set mysql=C:\Program Files (x86)\MySQL\MySQL Server 5.5</p>
<p dir="auto">C:\Qt51\5.1.0\mingw48_32&gt;cd C:\Qt51\5.1.0\Src\qtbase\src\plugins\sqldrivers\mysq<br />
l</p>
<p dir="auto">C:\Qt51\5.1.0\Src\qtbase\src\plugins\sqldrivers\mysql&gt;qmake "INCLUDEPATH+=%mysql<br />
server 5.5%\include" "LIBS+=%mysql server 5.5%\lib\libmysql.lib" -o Makefile<br />
<a href="http://mysql.pro" target="_blank" rel="noopener noreferrer nofollow ugc">mysql.pro</a></p>
<p dir="auto">C:\Qt51\5.1.0\Src\qtbase\src\plugins\sqldrivers\mysql&gt;mingw32-make<br />
mingw32-make -f Makefile.Release all<br />
mingw32-make[1]: Entering directory 'C:/Qt51/5.1.0/Src/qtbase/src/plugins/sqldri<br />
vers/mysql'<br />
g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions -frtti -W<br />
all -Wextra -DUNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCE<br />
PTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I. -I"%mysql" -I"se<br />
rver" -I"5.5%\include" -I"C:\Qt51\5.1.0\mingw48_32\include" -I"C:\Qt51\5.1.0\min<br />
gw48_32\include\QtSql" -I"C:\Qt51\5.1.0\mingw48_32\include\QtSql\5.1.0" -I"C:\Qt<br />
51\5.1.0\mingw48_32\include\QtSql\5.1.0\QtSql" -I"C:\Qt51\5.1.0\mingw48_32\inclu<br />
de\QtCore" -I"C:\Qt51\5.1.0\mingw48_32\include\QtCore\5.1.0" -I"C:\Qt51\5.1.0\mi<br />
ngw48_32\include\QtCore\5.1.0\QtCore" -I".moc\release_shared" -I"........\mks<br />
pecs\win32-g++" -o .obj\release_shared\main.o main.cpp<br />
In file included from main.cpp:44:0:<br />
../../../sql/drivers/mysql/qsql_mysql_p.h:63:19: fatal error: mysql.h: No such f<br />
ile or directory<br />
#include &lt;mysql.h&gt;<br />
^<br />
compilation terminated.<br />
Makefile.Release:497: recipe for target '.obj/release_shared/main.o' failed<br />
mingw32-make[1]: *** [.obj/release_shared/main.o] Error 1<br />
mingw32-make[1]: Leaving directory 'C:/Qt51/5.1.0/Src/qtbase/src/plugins/sqldriv<br />
ers/mysql'<br />
makefile:38: recipe for target 'release-all' failed<br />
mingw32-make: *** [release-all] Error 2</p>
<p dir="auto">C:\Qt51\5.1.0\Src\qtbase\src\plugins\sqldrivers\mysql&gt;</p>
<p dir="auto">The mysql.h file is located in,  C:\Program Files (x86)\MySQL\MySQL Server 5.5\include       folder.</p>
<p dir="auto">What I'm I doing wrong? Is something missing?<br />
{I have Win7 64 bit, MySQL Server5.5 (32bit) &amp; QT5.1 with Qt Creator 2.72 (32Bit)}</p>
]]></description><link>https://forum.qt.io/topic/31360/error-creating-mysql-drivers-for-qt5-1-mysql-h-no-such-file</link><generator>RSS for Node</generator><lastBuildDate>Tue, 05 May 2026 09:26:06 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/31360.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Aug 2013 17:51:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error creating MySQL drivers for QT5.1(mysql.h no such file) on Tue, 10 Sep 2013 15:44:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi. Do you know of a source to dowbload reimp. I 've tried many links on google but unsuccessfull in download the full file</p>
]]></description><link>https://forum.qt.io/post/194821</link><guid isPermaLink="true">https://forum.qt.io/post/194821</guid><dc:creator><![CDATA[QVirus]]></dc:creator><pubDate>Tue, 10 Sep 2013 15:44:01 GMT</pubDate></item><item><title><![CDATA[Reply to Error creating MySQL drivers for QT5.1(mysql.h no such file) on Thu, 29 Aug 2013 19:41:51 GMT]]></title><description><![CDATA[<p dir="auto">You need to download reimp yourself</p>
<p dir="auto">The MySQL installation folders might have changed a bit. You should only consider the files using their names</p>
]]></description><link>https://forum.qt.io/post/193274</link><guid isPermaLink="true">https://forum.qt.io/post/193274</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 29 Aug 2013 19:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to Error creating MySQL drivers for QT5.1(mysql.h no such file) on Thu, 29 Aug 2013 19:27:40 GMT]]></title><description><![CDATA[<p dir="auto">I’ve worked through the “ How to build the MySQL driver for MinGW users” procedure.<br />
When I type in reimp -d libmysql.lib    I get the error: 'reimp-d' is not recognized as an internal or external command,operable program or batch file.<br />
I’ve rename MySQL as MySQL55<br />
I’ve also noticed that I do not have a opt folder in the C:\Program Files (x86)\MySQL\MySQL55\lib   folder.</p>
]]></description><link>https://forum.qt.io/post/193268</link><guid isPermaLink="true">https://forum.qt.io/post/193268</guid><dc:creator><![CDATA[QVirus]]></dc:creator><pubDate>Thu, 29 Aug 2013 19:27:40 GMT</pubDate></item><item><title><![CDATA[Reply to Error creating MySQL drivers for QT5.1(mysql.h no such file) on Thu, 29 Aug 2013 18:52:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet</p>
<p dir="auto">"Here":<a href="http://qt-project.org/doc/qt-4.8/sql-driver.html#qmysql" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/sql-driver.html#qmysql</a> you have the instruction to build the plugin (although it's for Qt 4.8 the same applies to Qt 5)</p>
<p dir="auto">To simplify things, you should rather install MySql in a path without space.</p>
<p dir="auto">Hope it helps</p>
]]></description><link>https://forum.qt.io/post/193257</link><guid isPermaLink="true">https://forum.qt.io/post/193257</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 29 Aug 2013 18:52:52 GMT</pubDate></item></channel></rss>