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 mysql driver from qt-creator
Forum Updated to NodeBB v4.3 + New Features

How to build mysql driver from qt-creator

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
9 Posts 3 Posters 951 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.
  • M.H.HM Offline
    M.H.HM Offline
    M.H.H
    wrote on last edited by
    #1

    Re: How to build qt 5.13.1 mysql 8.0 driver?

    Hi there,

    I read some posts and the qt document on how to build MySql driver from the source code.
    I tried to follow the documents command and build it with qmake but I faced a problem that the environment is not setup.
    So, since the sqldrivers is a qt project how I can build it with qt-creator and where I must add MySql INC & LIB variables.

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

      There is no chance to build it with QtCreator since you have to call qmake with some parameters. Open the Qt command prompt and build it from there as written in the documentation.

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

      kshegunovK 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        There is no chance to build it with QtCreator since you have to call qmake with some parameters. Open the Qt command prompt and build it from there as written in the documentation.

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by
        #3

        @Christian-Ehrlicher said in How to build mysql driver from qt-creator:

        There is no chance to build it with QtCreator since you have to call qmake with some parameters.

        Really? What's the problem with parameters and qmake?

        @M-H-H said in How to build mysql driver from qt-creator:

        So, since the sqldrivers is a qt project how I can build it with qt-creator and where I must add MySql INC & LIB variables.

        The fact that it's a Qt (sub)project doesn't mean that much in this case. Just stick to the beaten path - building the driver from the command prompt, just as @Christian-Ehrlicher said.

        Read and abide by the Qt Code of Conduct

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

          @kshegunov said in How to build mysql driver from qt-creator:

          Really? What's the problem with parameters and qmake?

          Can you for sure add those parameters to the qmake run before qmake is run for the first time, check the output and all this stuff? It's maybe doable but for sure leads to much more confusion than doing this on the command line where you see the output of the commands you're running by yourself.

          A much better idea: throw away mysql and use postgresql - this driver is shipped with the binary Qt version.

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

          kshegunovK 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            @kshegunov said in How to build mysql driver from qt-creator:

            Really? What's the problem with parameters and qmake?

            Can you for sure add those parameters to the qmake run before qmake is run for the first time, check the output and all this stuff? It's maybe doable but for sure leads to much more confusion than doing this on the command line where you see the output of the commands you're running by yourself.

            A much better idea: throw away mysql and use postgresql - this driver is shipped with the binary Qt version.

            kshegunovK Offline
            kshegunovK Offline
            kshegunov
            Moderators
            wrote on last edited by
            #5

            @Christian-Ehrlicher said in How to build mysql driver from qt-creator:

            Can you for sure add those parameters to the qmake run before qmake is run for the first time, check the output and all this stuff?

            Yeah, I'm pretty sure.

            It's maybe doable but for sure leads to much more confusion than doing this on the command line where you see the output of the commands you're running by yourself.

            No argument there. What I wrote - it'd be highly painful and useless experimental run. :)

            A much better idea: throw away mysql and use postgresql - this driver is shipped with the binary Qt version.

            That'd been better, true, if only postgres was any good.

            Read and abide by the Qt Code of Conduct

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

              @kshegunov said in How to build mysql driver from qt-creator:

              if only postgres was any good.

              I'm using postgres since 10 years without any problems (with an without Qt) - nothing missing.

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

              kshegunovK 1 Reply Last reply
              0
              • Christian EhrlicherC Christian Ehrlicher

                @kshegunov said in How to build mysql driver from qt-creator:

                if only postgres was any good.

                I'm using postgres since 10 years without any problems (with an without Qt) - nothing missing.

                kshegunovK Offline
                kshegunovK Offline
                kshegunov
                Moderators
                wrote on last edited by kshegunov
                #7

                @Christian-Ehrlicher said in How to build mysql driver from qt-creator:

                I'm using postgres since 10 years without any problems (with an without Qt)

                Yes, I've been using it for some time as well, that doesn't mean it's good, though.

                nothing missing.

                Move me a column in a table, please.

                Read and abide by the Qt Code of Conduct

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

                  @kshegunov said in How to build mysql driver from qt-creator:

                  Move me a column in a table, please.

                  Why should I need this? The order of columns in a table is irrelevant.

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

                  kshegunovK 1 Reply Last reply
                  1
                  • Christian EhrlicherC Christian Ehrlicher

                    @kshegunov said in How to build mysql driver from qt-creator:

                    Move me a column in a table, please.

                    Why should I need this? The order of columns in a table is irrelevant.

                    kshegunovK Offline
                    kshegunovK Offline
                    kshegunov
                    Moderators
                    wrote on last edited by
                    #9

                    Okay, whatever, I don't feel like arguing and we are going off topic here.

                    Read and abide by the Qt Code of Conduct

                    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