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. Error when deploying Qt Application
Forum Updated to NodeBB v4.3 + New Features

Error when deploying Qt Application

Scheduled Pinned Locked Moved Solved Installation and Deployment
16 Posts 2 Posters 3.5k 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.
  • sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #7

    Yeah, that happens a lot. Does your application use MySQL? Some workarounds are available https://github.com/probonopd/linuxdeployqt/issues/235 Basically you can instruct linuxdeployqt to skip this plugin (https://github.com/probonopd/linuxdeployqt/pull/253).

    (Z(:^

    VineelaV 1 Reply Last reply
    0
    • sierdzioS sierdzio

      Yeah, that happens a lot. Does your application use MySQL? Some workarounds are available https://github.com/probonopd/linuxdeployqt/issues/235 Basically you can instruct linuxdeployqt to skip this plugin (https://github.com/probonopd/linuxdeployqt/pull/253).

      VineelaV Offline
      VineelaV Offline
      Vineela
      wrote on last edited by
      #8

      @sierdzio not MySQL but Sqlite

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #9

        Alright, then you can skip MySQL plugin safely.

        (Z(:^

        VineelaV 1 Reply Last reply
        0
        • sierdzioS sierdzio

          Alright, then you can skip MySQL plugin safely.

          VineelaV Offline
          VineelaV Offline
          Vineela
          wrote on last edited by
          #10

          @sierdzio so what do you think abt this error
          ERROR: Please ensure that all libraries can be found by ldd. Aborting.
          what am i missing?

          sierdzioS 1 Reply Last reply
          0
          • VineelaV Vineela

            @sierdzio so what do you think abt this error
            ERROR: Please ensure that all libraries can be found by ldd. Aborting.
            what am i missing?

            sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #11

            @Vineela said in Error when deploying Qt Application:

            @sierdzio so what do you think abt this error
            ERROR: Please ensure that all libraries can be found by ldd. Aborting.
            what am i missing?

            Ignore it. Focus on this, which is the real error:

            ERROR: ldd outputLine: "libmysqlclient_r.so.16 => not found"

            And skip that plugin. According to the docs, this should work:

            -exclude-libs=libqsqlmysql
            

            But I've never tried that option myself so can't say with certainty.

            Why you can skip/ ignore? The error is about a plugin. Your application does not use that plugin, so it won't load it at runtime, and that means it will not crash with "missing library" in practice.

            (Z(:^

            VineelaV 1 Reply Last reply
            2
            • sierdzioS sierdzio

              @Vineela said in Error when deploying Qt Application:

              @sierdzio so what do you think abt this error
              ERROR: Please ensure that all libraries can be found by ldd. Aborting.
              what am i missing?

              Ignore it. Focus on this, which is the real error:

              ERROR: ldd outputLine: "libmysqlclient_r.so.16 => not found"

              And skip that plugin. According to the docs, this should work:

              -exclude-libs=libqsqlmysql
              

              But I've never tried that option myself so can't say with certainty.

              Why you can skip/ ignore? The error is about a plugin. Your application does not use that plugin, so it won't load it at runtime, and that means it will not crash with "missing library" in practice.

              VineelaV Offline
              VineelaV Offline
              Vineela
              wrote on last edited by
              #12

              @sierdzio well it worked but my main problem now is not able to copy the binary file to my pendrive

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #13

                That does not sound to be Qt-related.

                Use Dropbox maybe? Format your pendrive? I don't know what the problem is so I can't help. AppImage files are normal binary files, they should copy just like any other file.

                (Z(:^

                VineelaV 1 Reply Last reply
                0
                • sierdzioS sierdzio

                  That does not sound to be Qt-related.

                  Use Dropbox maybe? Format your pendrive? I don't know what the problem is so I can't help. AppImage files are normal binary files, they should copy just like any other file.

                  VineelaV Offline
                  VineelaV Offline
                  Vineela
                  wrote on last edited by
                  #14

                  '/home/ubuntu16qt/Documents/build-Thinclient-Desktop_Qt_5_6_2_GCC_64bit-Release/Thinclient'
                  /home/ubuntu16qt/Documents/build-Thinclient-Desktop_Qt_5_6_2_GCC_64bit-Release/Thinclient: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version Qt_5' not found (required by /home/ubuntu16qt/Documents/build-Thinclient-Desktop_Qt_5_6_2_GCC_64bit-Release/Thinclient) /home/ubuntu16qt/Documents/build-Thinclient-Desktop_Qt_5_6_2_GCC_64bit-Release/Thinclient: /usr/lib/x86_64-linux-gnu/libQt5Sql.so.5: version Qt_5' not found (required by /home/ubuntu16qt/Documents/build-Thinclient-Desktop_Qt_5_6_2_GCC_64bit-Release/Thinclient)
                  /home/ubuntu16qt/Documents/build-Thinclient-Desktop_Qt_5_6_2_GCC_64bit-Release/Thinclient: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version Qt_5' not found (required by /home/ubuntu16qt/Documents/build-Thinclient-Desktop_Qt_5_6_2_GCC_64bit-Release/Thinclient) /home/ubuntu16qt/Documents/build-Thinclient-Desktop_Qt_5_6_2_GCC_64bit-Release/Thinclient: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version Qt_5.6' not found (required by /home/ubuntu16qt/Documents/build-Thinclient-Desktop_Qt_5_6_2_GCC_64bit-Release/Thinclient)
                  /home/ubuntu16qt/Documents/build-Thinclient-Desktop_Qt_5_6_2_GCC_64bit-Release/Thinclient: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by /home/ubuntu16qt/Documents/build-Thinclient-Desktop_Qt_5_6_2_GCC_64bit-Release/Thinclient)

                  this is my error for now
                  and what shud i do with this , -exclude-libs=libqsqlmysql???

                  1 Reply Last reply
                  0
                  • sierdzioS Offline
                    sierdzioS Offline
                    sierdzio
                    Moderators
                    wrote on last edited by
                    #15

                    When does this error show up? During compilation? Linking? Or when you try to run the executable?

                    I think the issue is that Qt version installed in your system is different from one ThinClient is linked against. If you have your AppImage binary created already - run that instead of ThinClient file itself.

                    (Z(:^

                    1 Reply Last reply
                    0
                    • VineelaV Offline
                      VineelaV Offline
                      Vineela
                      wrote on last edited by
                      #16

                      well its solved which is it works in the old version of Qt ,where mine was now 5.10 , it worked on 5.4 version by luck i had that Qt version . Thanks for your reply too @sierdzio

                      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