Ok, now I've installed MySQL 5.0. All the files can now be found on my computer. I ran:
C:\Qt\4.0.0\src\plugins\sqldrivers\mysql>qmake -o Makefile "INCLUDEPATH+=C:\Prog
ramme\MySQL\MySQLServer5.0\include" "LIBS+=C:\Programme\MySQL\MySQLServer5.0\lib
\opt\LIBMYSQL.LIB" mysql.pro
C:\Qt\4.0.0\src\plugins\sqldrivers\mysql>qmake -o Makefile "INCLUDEPATH+=C:\Prog
ramme\MySQL\MySQLServer5.0\include" "LIBS+=C:\Programme\MySQL\MySQLServer5.0\lib
\opt\LIBMYSQL.LIB" mysql.pro
To copy to clipboard, switch view to plain text mode
And I got the mistake that mysql.h could not be found. So I copied all the .cpp and .h files to C:\Qt\4.0.0\src\plugins\sqldrivers\mysql and to C:\Qt\4.0.0\plugins\sqldrivers and I changed #include <mysql.h> into #include "mysql.h" and then this worked. But I got another error-message, and I don't know how to handle it:
C:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot fin
d -lmysql.lib
C:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot fin
d -lmysql.lib
To copy to clipboard, switch view to plain text mode
What to do?
Bookmarks