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. QSqlDatabase error

QSqlDatabase error

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 3 Posters 2.2k 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 9 Apr 2016, 21:43 last edited by
    #3

    Hi and welcome to devnet,

    On what OS are you running digiKam ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    S 1 Reply Last reply 6 May 2016, 20:43
    0
    • S SGaist
      9 Apr 2016, 21:43

      Hi and welcome to devnet,

      On what OS are you running digiKam ?

      S Offline
      S Offline
      Swati
      wrote on 6 May 2016, 20:43 last edited by
      #4

      @SGaist I use Kubuntu 15.10

      1 Reply Last reply
      0
      • S sierdzio
        9 Apr 2016, 09:50

        Most probably you have not compiled the MySQL Qt driver. Please see this splendid guide by mattewre: link

        S Offline
        S Offline
        Swati
        wrote on 6 May 2016, 20:49 last edited by
        #5

        @sierdzio I've installed libqt5sql5-mysql is installed on my system.

        Anything else I need to install?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 6 May 2016, 20:49 last edited by
          #6

          Did you build digiKam yourself ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply 6 May 2016, 20:55
          0
          • S SGaist
            6 May 2016, 20:49

            Did you build digiKam yourself ?

            S Offline
            S Offline
            Swati
            wrote on 6 May 2016, 20:55 last edited by
            #7

            @SGaist Yes, I built digiKam myself.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 6 May 2016, 20:56 last edited by
              #8

              With which version of Qt ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              S 1 Reply Last reply 6 May 2016, 21:11
              0
              • S SGaist
                6 May 2016, 20:56

                With which version of Qt ?

                S Offline
                S Offline
                Swati
                wrote on 6 May 2016, 21:11 last edited by
                #9

                @SGaist Qt 5.6.0

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 6 May 2016, 21:28 last edited by
                  #10

                  Okay, so what you are likely experimenting is that you have a version of MySQL different than the one used to build the plugin. Currently you likely have the version 18 of the client library and the module was built with 16.

                  Now you have two options:

                  1. Rebuild the plugin for your 5.6
                  2. Use your distribution Qt 5 to build digiKam

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  S 1 Reply Last reply 7 May 2016, 08:06
                  0
                  • S SGaist
                    6 May 2016, 21:28

                    Okay, so what you are likely experimenting is that you have a version of MySQL different than the one used to build the plugin. Currently you likely have the version 18 of the client library and the module was built with 16.

                    Now you have two options:

                    1. Rebuild the plugin for your 5.6
                    2. Use your distribution Qt 5 to build digiKam
                    S Offline
                    S Offline
                    Swati
                    wrote on 7 May 2016, 08:06 last edited by
                    #11

                    @SGaist Could you elaborate a little on how to accomplish these?
                    It would be a help.

                    Thanks

                    S 1 Reply Last reply 7 May 2016, 08:09
                    0
                    • S Swati
                      7 May 2016, 08:06

                      @SGaist Could you elaborate a little on how to accomplish these?
                      It would be a help.

                      Thanks

                      S Offline
                      S Offline
                      sierdzio
                      Moderators
                      wrote on 7 May 2016, 08:09 last edited by
                      #12

                      @Swati

                      1. See the link I posted in my first reply to you - contains detailed instructions.
                      2. Install dev packages of Qt (in *buntu 15.10 I think they were named qt5-qmake-dev, but might be something else, they keep changing the package names :-/), then compile DigiKam using system Qt (qmake will be in PATH).

                      (Z(:^

                      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