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. How to build qt 5.13.1 mysql 8.0 driver?

How to build qt 5.13.1 mysql 8.0 driver?

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 1.7k Views 1 Watching
  • 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.
  • G Offline
    G Offline
    Gh0sTG0
    wrote on last edited by Gh0sTG0
    #1

    Good evening.
    Installed qt with mingw and mysql with c++ connector all x64.
    Trying to build mysql driver.

    ...\src\plugins\sqldrivers>qmake -- MYSQL_INCDIR=C:/MySQL/ConnectorC++8.0/include MYSQL_LIBDIR=C:/MYSQL/ConnectorC++8.0/lib64
    

    and it gives me:

    ...
    MySql......no
    

    And if ignore this "no" and try to build it builds only sqlite and odbc drivers.
    What should I do to build that plugin?
    PS changing ways to lib and include in MySQL/MySQLServer8.0 did no changes.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Gh0sTG0
      wrote on last edited by Gh0sTG0
      #5

      I don't know. Just installed all that things from mysql community server installer.
      That was really strange...
      I searched manually:

      • deleted folder config.tests
      • cleared files config.summary, config.opt, config.log, config.cache.
        Then I qmake include and lib from MYSQLSERVER8.0 folder...
        And that works... Now I'm connected with my mysql database...
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi and welcome to devnet,

        Is that library also built with MinGW ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • G Offline
          G Offline
          Gh0sTG0
          wrote on last edited by Gh0sTG0
          #3

          TY and I'm trying to do this with console "Qt 5.13.1 (MinGW 7.3.0 64-bit)" from my start/qt menu.
          PS Before I didn't built anything. Just install from qt community installer and mysql community server installer. Then start that "Qt 5.13.1 (MinGW 7.3.0 64-bit)" (from admin too) and trying to do that code what instructions are giving me.
          PS how it was:

          1. install qt and mysql (with c++ connector)
          2. start->qt->Qt 5.13.1 (MinGW 7.3.0 64-bit) from admin
          3. cd [way to plugins/sqldrivers]
          4. that qmake... things
          5. summary:
            qt sql drivers:
            ...
            mysql...no
            odbc...yes
            ...
          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @Gh0sTG0 said in How to build qt 5.13.1 mysql 8.0 driver?:

            ConnectorC++8.0

            My question was related to that library.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • G Offline
              G Offline
              Gh0sTG0
              wrote on last edited by Gh0sTG0
              #5

              I don't know. Just installed all that things from mysql community server installer.
              That was really strange...
              I searched manually:

              • deleted folder config.tests
              • cleared files config.summary, config.opt, config.log, config.cache.
                Then I qmake include and lib from MYSQLSERVER8.0 folder...
                And that works... Now I'm connected with my mysql database...
              1 Reply Last reply
              0

              • Login

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