Qt Mysql MacOs deploy
-
Hi, I have an application using the mysql plugin. I compiled the plugin myself and everything works fine inside QtCreator. The application connects to the database normally. When I compile the app in release version, then copy the app file to another folder and execute mcdeployqt on it, I have a problem. Inside the .app file, in the Plugins folder, I have a sqldrivers folder with all SQL plugins, including my mySQL. Despite this, the application has problems with activating the plugin. After running the unix application itself, I get the following errors:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMARIADB QMYSQL QODBC QPSQLIf anyone had a similar problem and managed to solve it, I would be grateful for help.
-
Hi, I have an application using the mysql plugin. I compiled the plugin myself and everything works fine inside QtCreator. The application connects to the database normally. When I compile the app in release version, then copy the app file to another folder and execute mcdeployqt on it, I have a problem. Inside the .app file, in the Plugins folder, I have a sqldrivers folder with all SQL plugins, including my mySQL. Despite this, the application has problems with activating the plugin. After running the unix application itself, I get the following errors:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMARIADB QMYSQL QODBC QPSQLIf anyone had a similar problem and managed to solve it, I would be grateful for help.
@Piotrek102 Did you also deploy the MySql client library? The plug-in uses it to access the database.
To debug plug-in issues set QT_DEBUG_PLUGINS env variable before running your app and check the output. See https://doc.qt.io/qt-6/debug.html