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 Update on Monday, May 27th 2025

Some issues about Qt programming in building MySQL driver

Scheduled Pinned Locked Moved General and Desktop
mysqldesktop
6 Posts 2 Posters 1.7k 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.
  • B Offline
    B Offline
    Berlloon
    wrote on 10 Oct 2015, 07:52 last edited by Berlloon 10 Oct 2015, 07:54
    #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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 10 Oct 2015, 20:44 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 12 Oct 2015, 01:31 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 12 Oct 2015, 22:30 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 13 Oct 2015, 23:59 last edited by
            #5

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

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 14 Oct 2015, 21:12 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

              1/6

              10 Oct 2015, 07:52

              • Login

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