Hello:
I have successfully built the mysql plugin for QT. The build process resulted in the following 4 files:
qsqlmysql4.dll
qsqlmysql4.lib
qsqlmysqld4.dll
qsqlmysqld4.lib.
I copied the above files to the plugins directory of QT, and the .dll's to C:\windows\system32
Then I wrote sample code to test
#include <QApplication>
#include <QtSql>
int main(int argc, char *argv[])
{
return a.exec();
}
#include <QApplication>
#include <QtSql>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << QSqlDatabase::drivers();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
The code compiles, links and runs fine but i get no output.
According to http://www.pikopong.com/blog/2010/04...k-for-windows/
The above code should output :
("QSQLITE", "QMYSQL3", "QMYSQL", "QODBC3", "QODBC")
("QSQLITE", "QMYSQL3", "QMYSQL", "QODBC3", "QODBC")
To copy to clipboard, switch view to plain text mode
What am I doing wrong?
Bookmarks