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 641 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 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
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 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 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 last edited by
          #6

          It is same error when I try to compile with QMYSQL

          1 Reply Last reply
          0
          • Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on 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
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 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 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
                • Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on 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 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 last edited by
                      #12

                      Thanks it work.

                      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