Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Build mysql driver on linux (Debian)
QtWS25 Last Chance

Build mysql driver on linux (Debian)

Scheduled Pinned Locked Moved Unsolved Qt 6
12 Posts 2 Posters 639 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.
  • A Offline
    A Offline
    Alfredy
    wrote on 9 Nov 2024, 08:46 last edited by
    #1

    Hello everybody, I want to build mysql driver on linux. I use Kali linux 2024.
    Thanks

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 9 Nov 2024, 09:21 last edited by
      #2

      So what's your question? When you use the Qt provided by your distribution you only have to install the pre-packaged version.
      If you compile Qt6 by your self or installed it via the online installer visit https://doc.qt.io/qt-6/sql-driver.html

      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
      1
      • A Offline
        A Offline
        Alfredy
        wrote on 9 Nov 2024, 09:33 last edited by
        #3

        Thanks for your answer.
        I get this error when I try these commands
        Screenshot From 2024-11-09 09-29-28.png

        Error :
        CMake Error: Error: generator : Ninja
        Does not match the generator used previously: Unix Makefiles
        Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 9 Nov 2024, 09:38 last edited by
          #4

          You show the installation instructions for windows...
          Please start over with a clean build directory, follow the documentation and post the output in case of an error.

          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
          • A Offline
            A Offline
            Alfredy
            wrote on 9 Nov 2024, 10:11 last edited by
            #5

            Screenshot From 2024-11-09 10-10-40.png

            I build it but on my Qt code I receive this error

            Thanks

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Alfredy
              wrote on 9 Nov 2024, 10:24 last edited by
              #6

              It is same error when I try to compile with QMYSQL

              1 Reply Last reply
              0
              • C Offline
                C Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on 9 Nov 2024, 10:32 last edited by
                #7

                So actually your plugin was built (otherwise it would not show up in available drivers) but it is not loaded due to missing dependencies -> Start you app with env var QT_DEBUG_PLUGINS is set ( https://doc.qt.io/qt-6/debug.html#environment-variables-recognized-by-qt ) and see why the Qt mysql plugin is no loaded.

                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
                1
                • C Offline
                  C Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on 9 Nov 2024, 10:56 last edited by
                  #8

                  When you use Kali Linux why do you compile Qt by yourself instead using the provided packages?

                  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
                  • A Offline
                    A Offline
                    Alfredy
                    wrote on 9 Nov 2024, 11:22 last edited by
                    #9

                    I needed qt creator and I also didn't have the information that Qt is available directly.
                    Can you guide me on this?

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on 9 Nov 2024, 11:32 last edited by
                      #10

                      When you need QtCreator why do you compile Qt then? Simply install it via the Qt online installer.

                      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
                      1
                      • A Offline
                        A Offline
                        Alfredy
                        wrote on 9 Nov 2024, 11:35 last edited by
                        #11

                        Yes I installed via Qt online, now I need to connect my application to MYSQL (XAMPP) for use my database.

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          Alfredy
                          wrote on 9 Nov 2024, 12:16 last edited by
                          #12

                          Thanks it work.

                          1 Reply Last reply
                          0

                          6/12

                          9 Nov 2024, 10:24

                          • Login

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