MySQL Driver not found (Qt5 MinGW32)
-
I forgot that Windows behaves differently, you have to add
CONFIG += console
to your .pro file to get a console attached to the output of your application.Use windeployqt to get the Qt dependencies of your application, then check with Dependency Walker if something fails. Then you should be good to go.
To test that on your dev machine, rename the Qt folder before starting your application.
-
I forgot that Windows behaves differently, you have to add
CONFIG += console
to your .pro file to get a console attached to the output of your application.Use windeployqt to get the Qt dependencies of your application, then check with Dependency Walker if something fails. Then you should be good to go.
To test that on your dev machine, rename the Qt folder before starting your application.
@SGaist Thank you so much for clarification! I have managed to remove the dll from everywhere in the system except for the MySQL Connector C 6.1 folder in Program Files, which actually contains the dll that I've configured as a required library in .pro file.
Now I'm struggling with a way to prevent database class from initializing before main(), which causes following errors to occur (copied from console output)QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSqlDatabase: an instance of QCoreApplication is required for loading driver plugins
I highly suspect that it will be enough to get rid of
database *db = new database ();
in the beginning of database.cpp.
I have fixed that and now I deploy successfully.
Infinite thanks for your patience and insights