Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    Installation and Deployment
    2
    6
    4554
    Loading More Posts
    • 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
      c1tru55 last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • C
          c1tru55 last edited by

          Hi and thanks!

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

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • C
              c1tru55 last edited by

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

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • First post
                  Last post