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. [Linux] QMYSQL Plugin Build Failure on Qt 5.2.1
Forum Updated to NodeBB v4.3 + New Features

[Linux] QMYSQL Plugin Build Failure on Qt 5.2.1

Scheduled Pinned Locked Moved Installation and Deployment
10 Posts 3 Posters 3.3k 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.
  • G Offline
    G Offline
    gluck
    wrote on last edited by
    #1

    Hi,
    the situation is that I have 3 versions of Qt: 4.8.4, 5.0.2 and 5.2.1.

    I was able to use QMYSQL Drivers on Qt 4.8.4 after installing libqt4-sql* libraries.
    On Qt 5.0.2 I was able to do that following this "documentation":https://qt-project.org/doc/qt-5.0/qtsql/sql-driver.html#how-to-build-the-qmysql-plugin-on-unix-and-mac-os-x .
    But I'm not able to do the same with Qt 5.2.1.

    Maybe anyone knows what I'm doing wrong?

    Thanks.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clochydd
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      do you have any error messages that you can post?
      What Linux are you using?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gluck
        wrote on last edited by
        #3

        I am using Linux Mint 16 Mate.
        And error i get running qmake is "Project ERROR: addExclusiveBuilds() requires at least two arguments"

        There was no such an error while running same command in on Qt's 5.0.2 mysql.pro

        1 Reply Last reply
        0
        • C Offline
          C Offline
          clochydd
          wrote on last edited by
          #4

          Are you building with the Creator?
          You should check your qmake settings and have a look at "Qt + MYSQL":http://qt-project.org/forums/viewthread/34763

          1 Reply Last reply
          0
          • G Offline
            G Offline
            gluck
            wrote on last edited by
            #5

            Thank you very much!

            I solved it by creating symlink:
            ln -s /usr/lib/i386-linux-gnu/libmysqlclient_r.so /usr/lib/i386-linux-gnu/libmysqlclient_r.so.16

            But as someone mentioned in another thread:
            "This seems to work in the first place but there has to be a better cleaner way to accomplish this."

            ...

            And another question about this solution: will it work well?

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

              Hi,

              If that symlink is missing, it generally means that you don't have the MySQL dev package installed. Just install it on your system and you should be good to go

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

                Hi SGaist,

                thank you for your reply!
                I think that is what i needed from the very beginning.

                And it is sad that Qt itself is not so 'inteligent' when speaking about plugins.

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

                  What do you mean by not so intelligent about plugins ?

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

                    Well, I think there should be more "evolved" plugins menu, where you could just select e.g. 'MYSQL Plugin', press 'install selected plugins' and everything just starts to work. :)

                    Or, at least, when I run "apt-get install libqt5sql5-mysql" it should resolve dependencies and install mysql-dev as well :)

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

                      if "apt-get install libqt5sql5-mysql" doesn't pull what is necessary then it's either the package that is misconfigured (package which is not provided by the Qt project) or one of it's dependencies.

                      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

                      • Login

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