Dear all, I am trying to make the QMYSQL plugin work with Qt 5.4.1, built under mingw-w64 4.9.1
I first compiled successfully the plugin with the mysql 64-bit package. However, my application : - crashes when connecting to the DB - works but issues a "plugin not loaded" message if the libmysql.dll cannot be found The app is just a QMainWindow stub which calls connect() in the constructor: bool MainWindow::connect() { QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL"); db.setHostName("localhost"); db.setDatabaseName("agc-ms"); db.setUserName("agc-ms"); db.setPassword("agc-ms"); if (!db.open()) { qDebug() << "Database error : " << db.lastError().text(); return false; } return true; } I have read that mysql 64bits is not supported by the plugin; but if I try to compile with the 32bit version , I get link errors (mysql lib symbols not found) Did someone manage to get QMYSQL working with 64bit mingw? Thanks! Etienne
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest