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. Some issues about Qt programming in building MySQL driver
Forum Updated to NodeBB v4.3 + New Features

Some issues about Qt programming in building MySQL driver

Scheduled Pinned Locked Moved General and Desktop
mysqldesktop
6 Posts 2 Posters 1.7k Views 2 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.
  • B Offline
    B Offline
    Berlloon
    wrote on last edited by Berlloon
    #1

    I have download the Qt5.5.0 and installed it with "source component" checked. and MySQL installed either. When I tried to build the driver I got the following error
    QtSql/private/qsqldriver_p.h: No such file or directory
    #include <QtSql/private/qsqldriver_p.h>

    And when I cd to the directory I found that there are three lib files
    libqsqlite.so libqsqlmysql.so libqsqlpsql.so

    I try to execute 'ldd libqsqlmysql.so' and I got the following response
    **
    libmysqlclient_r.so.16 => not found
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fdbee109000)
    libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fdbeded0000)
    libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007fdbedcb6000)
    libssl.so.10 => not found
    libcrypto.so.10 => not found
    **

    How can I solve this?

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

      Hi and welcome to devnet,

      Please start by searching the forum a bit, this question has been asked many times already. You need to install the mysql dev package for your distribution then you should be able to build the plugin.

      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
      • B Offline
        B Offline
        Berlloon
        wrote on last edited by
        #3

        Thank you. There may be another problem. Actually there are some problems in MySQL Somehow, I'll try.

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

          There's a known bug that has been fixed for 5.5.1, check that before going too deep.

          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
          • B Offline
            B Offline
            Berlloon
            wrote on last edited by
            #5

            Thank you. After I installed Qt4.8.6 via apt-get. Everything went smoothly.

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

              Not the most clean solution, you are downgrading Qt to a series that has seen its last release a few month ago.

              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