Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building the MySQL/MariaDB plugin for CentOS 8
QtWS25 Last Chance

Building the MySQL/MariaDB plugin for CentOS 8

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 423 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.
  • G Offline
    G Offline
    GregB
    wrote on last edited by
    #1

    I'm trying to build the mysql plugin for a Qt console application in CentOS 8. I've followed the directions from https://doc.qt.io/qt-5/sql-driver.html but it only builds the sqllite driver.

    I've run:

    qmake -- MYSQL_PREFIX=/usr/include/mysql
    

    but it still says that only the sqllite driver is available. Running

    make sub_mysql
    

    doesn't work either, because the previous step didn't.

    How do I build the MariaDB/MySQL driver on CentOS 8?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      remove config.cache, config.log and run qmake again. Then take a look into config.log why mysql is not found.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • G Offline
        G Offline
        GregB
        wrote on last edited by
        #3

        That worked! Thank you

        Christian EhrlicherC 1 Reply Last reply
        0
        • G GregB

          That worked! Thank you

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @GregB Then please mark this topic as solved, thx.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yixinshark
            wrote on last edited by
            #5

            i want to know how to resolve it,is the path “/usr/include/mysql" error?thanks!hope your reply!

            jsulmJ 1 Reply Last reply
            0
            • Y yixinshark

              i want to know how to resolve it,is the path “/usr/include/mysql" error?thanks!hope your reply!

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

              @yixinshark said in Building the MySQL/MariaDB plugin for CentOS 8:

              is the path “/usr/include/mysql" error?

              Depends on your system. Did you check where you have mysql header files?
              And what exact problem do you actually have?

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

              Y 1 Reply Last reply
              1
              • jsulmJ jsulm

                @yixinshark said in Building the MySQL/MariaDB plugin for CentOS 8:

                is the path “/usr/include/mysql" error?

                Depends on your system. Did you check where you have mysql header files?
                And what exact problem do you actually have?

                Y Offline
                Y Offline
                yixinshark
                wrote on last edited by
                #7

                @jsulm thank you very much,i had resolved my problem,not installed ”mysql-devel"。

                1 Reply Last reply
                1

                • Login

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