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. libmysqlclient.so.18 is missing
Qt 6.11 is out! See what's new in the release blog

libmysqlclient.so.18 is missing

Scheduled Pinned Locked Moved Unsolved General and Desktop
18 Posts 6 Posters 5.7k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #8

    Hi,

    You likely have have MySQL version 20 if you have a recent Linux distribution.

    But since you are not using MySQL with your application. Why not just ignore that warning ?

    What do you get if you call ldd on the Qt SQLite 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
    • orzel1244O Offline
      orzel1244O Offline
      orzel1244
      wrote on last edited by
      #9

      https://pastebin.com/ipHUP0j5 <- logs from linuxdeployqt

      1 Reply Last reply
      0
      • orzel1244O Offline
        orzel1244O Offline
        orzel1244
        wrote on last edited by
        #10

        @SGaist said in libmysqlclient.so.18 is missing:

        Why not just ignore that warning ?

        Because the warning doesn't allow me to access my sqlite database

        ldd on the plugin gives me:
        https://pastebin.com/7Vs9bSB0

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

          Looks like there's a missing feature to disable unused SQL plugins for linuxdeployqt.

          Then you should consider re-building the MySQL plugin against the version you installed on your system.

          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
          • orzel1244O Offline
            orzel1244O Offline
            orzel1244
            wrote on last edited by
            #12

            I'm still getting error while trying to compile Qt from sources, I think it's too hard for me and it's better to use other lib for database :/

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

              Then as a quick work around:

              • Make a copy your sqldrivers folder.
              • Remove all plugins in the original folder except the one you use.
              • Re-run linuxdeployqt

              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
              • orzel1244O Offline
                orzel1244O Offline
                orzel1244
                wrote on last edited by
                #14

                You want me to copy sqldrivers from Qt dir to the application dir or what? I'm sorry I don't understand what you meant

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

                  No, make a copy of the sqldrivers folder from the Qt installation you used to build your application. So you keep all the original files safe. Then in the original folder from your Qt installation, delete all the non SQLite related files. Doing so, linuxdeployqt will only deploy the SQLite driver. Once your done, just delete the modified sqldrivers folder and put back the copy you made just before.

                  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
                    APSH
                    wrote on last edited by
                    #16

                    Tried to generate AppImage with linuxdeployqt , I get libmimerapi.so not found . There is no such plugin available . But when i build with cmake from Qt creator , build succeeds and app works as expected

                    jsulmJ 1 Reply Last reply
                    0
                    • A APSH

                      Tried to generate AppImage with linuxdeployqt , I get libmimerapi.so not found . There is no such plugin available . But when i build with cmake from Qt creator , build succeeds and app works as expected

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

                      @APSH said in libmysqlclient.so.18 is missing:

                      There is no such plugin available

                      libmimerapi.so is not a plug-in, it's a library you have to install. Search for the package in your Linux distribution which installs it.

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

                      1 Reply Last reply
                      0
                      • Christian EhrlicherC Offline
                        Christian EhrlicherC Offline
                        Christian Ehrlicher
                        Lifetime Qt Champion
                        wrote on last edited by
                        #18

                        ... Or simply delete the Qt mimer sql plug in if it is not needed.

                        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                        Visit the Qt Academy at https://academy.qt.io/catalog

                        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