Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QT5.14.1 MYSQL and MSVC2019



  • Hello *,

    I´m trying to use QT5.14.1 for connectic to a MYSQL-server. After finding out that I have to build the QMYSQL driver I´ve tried to build it in many ways using MSVC2019 without success. After installing MiniGW64 I was able to build the driver and using it in an application. No I have tho questions:

    Do I have to build it again using MSVC2019 if I want to use MSVC2019 for building the application? Copying the qmysql-plugin (compiled by using minigw64) into the msvc2017 plugin-directory and the mysql dll in the application directory doesn´t work

    Why are MYSQL and ODBC not regognized while qmake is doing the config-test? While usind MiniGW64 both are regognized with the same qmake call.


  • Qt Champions 2019

    @DG4FCU said in QT5.14.1 MYSQL and MSVC2019:

    Do I have to build it again using MSVC2019 if I want to use MSVC2019 for building the application?

    Yes

    "Why are MYSQL and ODBC not regognized while qmake is doing the config-test?" - please check the config log.



  • You made my day!!!!!

    In the config log there was a message regarding that the MSVC version was not set, which was the result of not deleted stash files (google was my friend).

    Now everything works, including using MYSQL in the application.


Log in to reply