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. QT version 4.8 to 5.7 QMySQl

QT version 4.8 to 5.7 QMySQl

Scheduled Pinned Locked Moved Solved Installation and Deployment
14 Posts 3 Posters 3.5k 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
    Amaury
    wrote on last edited by
    #5

    Yes I have a MySql Database and I need to make Qt works with it (was running in previous version)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #6

      Then run ldd on that plugin please.

      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
      • A Offline
        A Offline
        Amaury
        wrote on last edited by
        #7

        The problem is that I don't know where it is , I don't have any MySql Librairies in Qt...

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #8

          So you mean the plugin wasn't built ?

          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
          • A Offline
            A Offline
            Amaury
            wrote on last edited by Amaury
            #9

            I installed Qt via the tar.gz file so I build it by myself , is there any chances that the library is not build in the same time ?
            In /usr/local/Qt-5.7.1/plugins/sqldrivers I just have libqsqlite.so file so I assume that's where I need to have my MySQL files since I only have the sql detected by Qt.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #10

              Do you have the MySQL dev package for ARM on your system ?

              If not, then that's one of the reason why it wasn't built. If you have it, then it might not have been found.

              In any case, you don't need to re-build all of Qt. Just build the plugin by hand like shown in the documentation.

              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
              • A Offline
                A Offline
                Amaury
                wrote on last edited by Amaury
                #11

                I just installed Mysql to run it on my rasp , I tried to use some command to get the mysql packages but don't know if that works , do you have the command to get the dev package or the doc link please?

                EDIT : sudo apt-get install mysql-client libmysqlclient-dev I tried this command line but it looks that I already have the packages.

                jsulmJ 1 Reply Last reply
                0
                • A Amaury

                  I just installed Mysql to run it on my rasp , I tried to use some command to get the mysql packages but don't know if that works , do you have the command to get the dev package or the doc link please?

                  EDIT : sudo apt-get install mysql-client libmysqlclient-dev I tried this command line but it looks that I already have the packages.

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

                  @Amaury Then try to build the plug-in and see what happens.

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

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Amaury
                    wrote on last edited by Amaury
                    #13

                    @jsulm How are you doing that ?
                    EDIT :

                    Problem seems to be solved with the mysql connector package that I didn't downloaded
                    For those who have the same problem try the command :

                    sudo apt-get install libmysqlcppconn-dev
                    That worked for me , thank you guys .

                    jsulmJ 1 Reply Last reply
                    0
                    • A Amaury

                      @jsulm How are you doing that ?
                      EDIT :

                      Problem seems to be solved with the mysql connector package that I didn't downloaded
                      For those who have the same problem try the command :

                      sudo apt-get install libmysqlcppconn-dev
                      That worked for me , thank you guys .

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

                      @Amaury As @SGaist said: "Just build the plugin by hand like shown in the documentation"

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

                      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