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. Symbol lookup error (undefined symbol) when deploying Qt5 app on clear Ubuntu machine

Symbol lookup error (undefined symbol) when deploying Qt5 app on clear Ubuntu machine

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 6.0k 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.
  • C Offline
    C Offline
    c1tru55
    wrote on last edited by
    #1

    Hi!

    I created default Qt5 widgets application, compiled is as a release on Ubuntu and prepare directory with next files:

    • app
    • all *.so libraries from ldd output
    • app.sh script from http://doc.qt.digia.com/qt-5.2/linux-deployment.html

    But when I run app.sh script on another Ubuntu machine (without installed Qt5), I get next error:

    @symbol lookup error: /path/to/app/./libQt5Widgets.so.5: undefined symbol: _ZTI15QGuiApplication@

    How fix it? Thanks in advance,

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

      Hi and welcome to devnet,

      Do you also have libQt5Gui deployed ?

      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
      • C Offline
        C Offline
        c1tru55
        wrote on last edited by
        #3

        Hi and thanks!

        yes, I have libQt5Gui.so.5 library also in same dir...

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

          Then run ldd on your executable from your script to see if there's something missing

          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
          • C Offline
            C Offline
            c1tru55
            wrote on last edited by
            #5

            Done it previously several times using:
            LD_LIBRARY_PATH=. ldd app
            but there are no not found libraries!

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

              LD_LIBRARY_PATH=. is not a good idea, you should rather give the full path of the folder containing your application

              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

              • Login

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