Hi , I recompile all QT library in QTCreator, but before I :
1. Copied files from :
C:\Program Files\MySQL\MySQL Server 5.1\include
C:\Program Files\MySQL\MySQL Server 5.1\include
To copy to clipboard, switch view to plain text mode
and
C:\Program Files\MySQL\MySQL Server 5.1\lib\opt
C:\Program Files\MySQL\MySQL Server 5.1\lib\opt
To copy to clipboard, switch view to plain text mode
to
C:\Qt\4.5.1\src\plugins\sqldrivers\mysql
C:\Qt\4.5.1\src\plugins\sqldrivers\mysql
To copy to clipboard, switch view to plain text mode
2. I edit:
C:\Qt\4.5.1\src\plugins\sqldrivers\mysql\mysql.pro
C:\Qt\4.5.1\src\plugins\sqldrivers\mysql\mysql.pro
To copy to clipboard, switch view to plain text mode
and in line were is :
LIBS *= -llibmysql
change to
LIBS *= -libmysql
3. You must check that you have a files :
libmysql.a
libmysql.dll
libmysql.def
libmysql.a
libmysql.dll
libmysql.def
To copy to clipboard, switch view to plain text mode
because in many tutorials is create different file name like : liblibmysql
4. In QTDir run :
configure -qt-sql-mysql
configure -qt-sql-mysql
To copy to clipboard, switch view to plain text mode
5. I opened in QTCreator file:
C:\Qt\4.5.1\projects.pro
C:\Qt\4.5.1\projects.pro
To copy to clipboard, switch view to plain text mode
and I click compile.
You didn't must wait to end ,because you only need wait to a moment when all sql driver is end compiled. For safe you wait to end
I hope that you understand me
Bookmarks