[Interest] Qt5 mingw64 & mysql plugin

Alexpux alexpux at gmail.com
Thu Apr 2 18:36:04 CEST 2015


> 2 апр. 2015 г., в 18:26, Etienne Sandré-Chardonnal <etienne.sandre at m4x.org> написал(а):
> 
> 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?

Hi!

Try use MSYS2. We have Qt5 builds with MYSQL plugin support.

Regards,
Alexey.

> 
> Thanks!
> 
> Etienne
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150402/d8c83ab9/attachment.html>


More information about the Interest mailing list