Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT5.14.1 MYSQL and MSVC2019
Forum Updated to NodeBB v4.3 + New Features

QT5.14.1 MYSQL and MSVC2019

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 496 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DG4FCU
    wrote on last edited by
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • D DG4FCU

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • D Offline
        D Offline
        DG4FCU
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        2

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved