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. Deploying with linuxdeployqt tool

Deploying with linuxdeployqt tool

Scheduled Pinned Locked Moved Solved Installation and Deployment
9 Posts 4 Posters 7.6k 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.
  • A Offline
    A Offline
    abhay
    wrote on last edited by A Former User
    #1

    Hello..I am trying to deploy my Qt application through linuxdeployqt by following this video -> https://www.youtube.com/watch?v=PDzlT_ODpM8. In the video at 8:56 he runs a command,I am getting some errors while running the same command but changing with my system requirements.These are the errors:

    "/tmp/.mount_DB5n6w/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
    app-binary: "/home/billy/build-src-Desktop_Qt_5_7_0_GCC_64bit-Debug/simple-player"
    ERROR: ldd outputLine: "/home/billy/build-src-Desktop_Qt_5_7_0_GCC_64bit-Debug/AppRun: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.7' not found (required by /home/billy/build-src-Desktop_Qt_5_7_0_GCC_64bit-Debug/AppRun)"
    ERROR: ldd outputLine: "/home/billy/build-src-Desktop_Qt_5_7_0_GCC_64bit-Debug/AppRun: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found (required by /home/billy/build-src-Desktop_Qt_5_7_0_GCC_64bit-Debug/AppRun)"
    ERROR: ldd outputLine: "/home/billy/build-src-Desktop_Qt_5_7_0_GCC_64bit-Debug/AppRun: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not found (required by /home/billy/build-src-Desktop_Qt_5_7_0_GCC_64bit-Debug/AppRun)"
    ERROR: ldd outputLine: "/home/billy/build-src-Desktop_Qt_5_7_0_GCC_64bit-Debug/AppRun: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by /home/billy/build-src-Desktop_Qt_5_7_0_GCC_64bit-Debug/AppRun)"
    
    

    Can anybody tell me why I am getting this errors and suggest me some solution for this? Thanks!!

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

      Hi,

      Looks likes it's finding your system Qt rather than the one you installed, isn't it ?

      Note that this tool isn't yet part of Qt.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Looks likes it's finding your system Qt rather than the one you installed, isn't it ?

        Note that this tool isn't yet part of Qt.

        A Offline
        A Offline
        abhay
        wrote on last edited by
        #3

        @SGaist Thanks for replying.Can you tell me how to change the qt path to installed sdk path and how to deploy my application without that tool?Thanks

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

          I'd try why setting LD_LIBRARY_PATH before calling linuxdeployqt.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply
          0
          • SGaistS SGaist

            I'd try why setting LD_LIBRARY_PATH before calling linuxdeployqt.

            A Offline
            A Offline
            abhay
            wrote on last edited by
            #5

            @SGaist Can you tell me how to set that path? Thanks!

            1 Reply Last reply
            0
            • Paul ColbyP Offline
              Paul ColbyP Offline
              Paul Colby
              wrote on last edited by
              #6

              Hi @abhay,

              I have no experience with linuxdeployqt , however, a couple of things I'd try:

              1. check that qmake -v is showing the same Qt version you built the app with. For example, if you used Qt Creator and/or the Qt installer, its quite liekly that Qt Creator is setup to use a more recent Qt version, while your shell (which, presumably, linuxdeployqt is running in) is providing an older Qt version. Based on the error message, I'd guess that you don't even have the OS's Qt libraries installed, which is fine... in this case you probably need to add the Qt installer's qmake to your path, so that it gets used in preference to the OS's. Anyway, run qmake -v and compare the output to the version of Qt that you used to build your app.

              2. if that all looks correct, try linuxdeployqt's libpath opton... perhaps something like:

              linuxdeployqt app-binary --libpath=/path/to/your/qt/libs 
              

              Of course, you should also raise the question at linuxdeployqt/issues, if you haven't already :)

              Cheers.

              A 2 Replies Last reply
              3
              • Paul ColbyP Paul Colby

                Hi @abhay,

                I have no experience with linuxdeployqt , however, a couple of things I'd try:

                1. check that qmake -v is showing the same Qt version you built the app with. For example, if you used Qt Creator and/or the Qt installer, its quite liekly that Qt Creator is setup to use a more recent Qt version, while your shell (which, presumably, linuxdeployqt is running in) is providing an older Qt version. Based on the error message, I'd guess that you don't even have the OS's Qt libraries installed, which is fine... in this case you probably need to add the Qt installer's qmake to your path, so that it gets used in preference to the OS's. Anyway, run qmake -v and compare the output to the version of Qt that you used to build your app.

                2. if that all looks correct, try linuxdeployqt's libpath opton... perhaps something like:

                linuxdeployqt app-binary --libpath=/path/to/your/qt/libs 
                

                Of course, you should also raise the question at linuxdeployqt/issues, if you haven't already :)

                Cheers.

                A Offline
                A Offline
                abhay
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • Paul ColbyP Paul Colby

                  Hi @abhay,

                  I have no experience with linuxdeployqt , however, a couple of things I'd try:

                  1. check that qmake -v is showing the same Qt version you built the app with. For example, if you used Qt Creator and/or the Qt installer, its quite liekly that Qt Creator is setup to use a more recent Qt version, while your shell (which, presumably, linuxdeployqt is running in) is providing an older Qt version. Based on the error message, I'd guess that you don't even have the OS's Qt libraries installed, which is fine... in this case you probably need to add the Qt installer's qmake to your path, so that it gets used in preference to the OS's. Anyway, run qmake -v and compare the output to the version of Qt that you used to build your app.

                  2. if that all looks correct, try linuxdeployqt's libpath opton... perhaps something like:

                  linuxdeployqt app-binary --libpath=/path/to/your/qt/libs 
                  

                  Of course, you should also raise the question at linuxdeployqt/issues, if you haven't already :)

                  Cheers.

                  A Offline
                  A Offline
                  abhay
                  wrote on last edited by
                  #8

                  @Paul-Colby Thanks for your suggestion!It worked!

                  B 1 Reply Last reply
                  1
                  • A abhay

                    @Paul-Colby Thanks for your suggestion!It worked!

                    B Offline
                    B Offline
                    backstroke182
                    wrote on last edited by
                    #9

                    @abhay Hey mate. I ve been going through the same issue recently. Tried it all but nothing really works. Would you care to let me know what were the actual steps you took in detail, so I can check where I am missing? Only if you remember of course. It has been a while. Cheers mate!!

                    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