Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Error After Compilation and Deployment QGroundControl [QGC version: Stable 4.3] using Qt 5.15.2 GCC 64bit
Qt 6.11 is out! See what's new in the release blog

Error After Compilation and Deployment QGroundControl [QGC version: Stable 4.3] using Qt 5.15.2 GCC 64bit

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
10 Posts 2 Posters 3.8k 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.
  • V Offline
    V Offline
    VIDYUL SHAH
    wrote on last edited by
    #1

    /tmp/.mount_QGroundsh0atR/usr/bin/QGroundControl: error while loading share libraries: libQt5Location.so.5: cannot open shared object file: No such file or directory

    but when I run
    file -L /path_to_directory/QGroundControl.AppDir/usr/bin/Qt/libs/libQt5Location.so.5
    terminal output: /path_to_directory/QGroundControl.AppDir/usr/bin/Qt/libs/libQt5Location.so.5: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=446930eb757fbfb14bf9d2c1f957d95cf2fa3d59, not stripped
    I also ran
    ldd /path_to_directory/QGroundControl.AppDir/usr/bin/Qt/libs/libQt5Location.so.5
    and noting seemed to be missing

    What could be possible error or what should I do?

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

      The libs are not in the same folder as the executable, so the loader can't find them.
      Set LD_LIBRARY_PATH so that it points to /path_to_directory/QGroundControl.AppDir/usr/bin/Qt/libs before you start the app.

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

      V 1 Reply Last reply
      0
      • jsulmJ jsulm

        The libs are not in the same folder as the executable, so the loader can't find them.
        Set LD_LIBRARY_PATH so that it points to /path_to_directory/QGroundControl.AppDir/usr/bin/Qt/libs before you start the app.

        V Offline
        V Offline
        VIDYUL SHAH
        wrote on last edited by
        #3

        @jsulm now this error has come
        /tmp/.mount_QGrounxnBuDz/usr/bin/QGroundControl: symbol lookup error: /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb, version Qt_5_PRIVATE_API

        jsulmJ 1 Reply Last reply
        0
        • V VIDYUL SHAH

          @jsulm now this error has come
          /tmp/.mount_QGrounxnBuDz/usr/bin/QGroundControl: symbol lookup error: /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb, version Qt_5_PRIVATE_API

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

          @VIDYUL-SHAH said in Error After Compilation and Deployment QGroundControl [QGC version: Stable 4.3] using Qt 5.15.2 GCC 64bit:

          /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5

          It looks like the loader is trying to load libs from /lib/x86_64-linux-gnu/ (which is default location on Linux).
          Do you have libQt5XcbQpa.so.5 in /path_to_directory/QGroundControl.AppDir/usr/bin/Qt/libs ?
          Did you read https://doc.qt.io/qt-6/linux-deployment.html ?
          You can also use https://github.com/probonopd/linuxdeployqt to deploy Qt applications.

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

          V 5 Replies Last reply
          0
          • V Offline
            V Offline
            VIDYUL SHAH
            wrote on last edited by VIDYUL SHAH
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • jsulmJ jsulm

              @VIDYUL-SHAH said in Error After Compilation and Deployment QGroundControl [QGC version: Stable 4.3] using Qt 5.15.2 GCC 64bit:

              /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5

              It looks like the loader is trying to load libs from /lib/x86_64-linux-gnu/ (which is default location on Linux).
              Do you have libQt5XcbQpa.so.5 in /path_to_directory/QGroundControl.AppDir/usr/bin/Qt/libs ?
              Did you read https://doc.qt.io/qt-6/linux-deployment.html ?
              You can also use https://github.com/probonopd/linuxdeployqt to deploy Qt applications.

              V Offline
              V Offline
              VIDYUL SHAH
              wrote on last edited by
              #6

              @jsulm Even I observed that when I run build option and run ./staging/QGroundControl before I create a AppImage, IT also gave me this error:
              ./staging/QGroundControl: symbol lookup error: /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb, version Qt_5_PRIVATE_API

              Is it that it is unable to detect this file which is necessary? But I can see something like this in my system that I have provided in the screenshot.
              Qt5Error.png

              1 Reply Last reply
              0
              • jsulmJ jsulm

                @VIDYUL-SHAH said in Error After Compilation and Deployment QGroundControl [QGC version: Stable 4.3] using Qt 5.15.2 GCC 64bit:

                /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5

                It looks like the loader is trying to load libs from /lib/x86_64-linux-gnu/ (which is default location on Linux).
                Do you have libQt5XcbQpa.so.5 in /path_to_directory/QGroundControl.AppDir/usr/bin/Qt/libs ?
                Did you read https://doc.qt.io/qt-6/linux-deployment.html ?
                You can also use https://github.com/probonopd/linuxdeployqt to deploy Qt applications.

                V Offline
                V Offline
                VIDYUL SHAH
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • V VIDYUL SHAH referenced this topic on
                • jsulmJ jsulm

                  @VIDYUL-SHAH said in Error After Compilation and Deployment QGroundControl [QGC version: Stable 4.3] using Qt 5.15.2 GCC 64bit:

                  /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5

                  It looks like the loader is trying to load libs from /lib/x86_64-linux-gnu/ (which is default location on Linux).
                  Do you have libQt5XcbQpa.so.5 in /path_to_directory/QGroundControl.AppDir/usr/bin/Qt/libs ?
                  Did you read https://doc.qt.io/qt-6/linux-deployment.html ?
                  You can also use https://github.com/probonopd/linuxdeployqt to deploy Qt applications.

                  V Offline
                  V Offline
                  VIDYUL SHAH
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @VIDYUL-SHAH said in Error After Compilation and Deployment QGroundControl [QGC version: Stable 4.3] using Qt 5.15.2 GCC 64bit:

                    /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5

                    It looks like the loader is trying to load libs from /lib/x86_64-linux-gnu/ (which is default location on Linux).
                    Do you have libQt5XcbQpa.so.5 in /path_to_directory/QGroundControl.AppDir/usr/bin/Qt/libs ?
                    Did you read https://doc.qt.io/qt-6/linux-deployment.html ?
                    You can also use https://github.com/probonopd/linuxdeployqt to deploy Qt applications.

                    V Offline
                    V Offline
                    VIDYUL SHAH
                    wrote on last edited by
                    #9

                    @jsulm
                    Question. Do you have libQt5XcbQpa.so.5 in /path_to_directory/QGroundControl.AppDir/usr/bin/Qt/libs ?
                    Answer. Yes it is present at the particular location.
                    Question. Did you read https://doc.qt.io/qt-6/linux-deployment.html ?
                    Answer. Yes I am following both the links you provided and then too it is giving me that error.

                    Even I observed that when I run build option and run ./staging/QGroundControl before I create a AppImage, IT also gave me this error:
                    ./staging/QGroundControl: symbol lookup error: /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb, version Qt_5_PRIVATE_API
                    Is it that it is unable to detect this file which is necessary? But I can see something like this in my system that I have provided in the screenshot.
                    https://ddgobkiprc33d.cloudfront.net/becb3159-e8ac-4c8b-a158-25b37ee7341c.png

                    I reinstalled qt but same error message pops up
                    ./staging/QGroundControl: symbol lookup error: /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: _ZN22QWindowSystemInterface24setPlatformFiltersEventsEb, version Qt_5_PRIVATE_API

                    https://forum.qt.io/topic/126011/symbol-lookup-error-lib-x86_64-linux-gnu-libqt5xcbqpa-so-5-undefined-symbol-_zn22qwindowsysteminterface24setplatformfilterseventseb-version-qt_5_private_api/6
                    I saw one of the qt forum post here and i am able to build the system properly and it runs fine in my system.
                    Now I get the error when I run the AppImage in another PC which is of my Teammate.
                    $ /tmp/.mount_QGrounWV8Tcc/usr/bin/QGroundControl: error while loading shared libraries: libQt5Location.so.5: cannot open shared object file: No such file or directory
                    I am using Ubuntu 20.04 and he is using 22.04.
                    There might be problem in restructuring while forming an AppImage or something else?

                    1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @VIDYUL-SHAH said in Error After Compilation and Deployment QGroundControl [QGC version: Stable 4.3] using Qt 5.15.2 GCC 64bit:

                      /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5

                      It looks like the loader is trying to load libs from /lib/x86_64-linux-gnu/ (which is default location on Linux).
                      Do you have libQt5XcbQpa.so.5 in /path_to_directory/QGroundControl.AppDir/usr/bin/Qt/libs ?
                      Did you read https://doc.qt.io/qt-6/linux-deployment.html ?
                      You can also use https://github.com/probonopd/linuxdeployqt to deploy Qt applications.

                      V Offline
                      V Offline
                      VIDYUL SHAH
                      wrote on last edited by
                      #10

                      @jsulm I would like to know the significance of writing these line for creating the Appmage.
                      The below lines I had to write in the AppRun file

                      #!/bin/sh
                      HERE="$(dirname "$(readlink -f "${0}")")"
                      export LD_LIBRARY_PATH="${HERE}/Qt/libs":$LD_LIBRARY_PATH
                      export QML2_IMPORT_PATH="${HERE}/Qt/qml"
                      export QT_PLUGIN_PATH="${HERE}/Qt/plugins"
                      mkdir -p ~/.icons && cp "${HERE}/yottec.png" ~/.icons
                      EXEC="${HERE}/usr/bin/QGroundControl"
                      exec "${EXEC}"
                      

                      Why is writing those 3 export lines important
                      these lines have solved

                      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
                      • Unsolved