Results 1 to 4 of 4

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

  1. #1
    Join Date
    May 2014
    Posts
    3
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

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

    I have a Qt5 application, compiled for release on Ubuntu. I prepare directory with:



    But when I run .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?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Symbol lookup error (undefined symbol) when deploying Qt5 app on clear Ubuntu mac

    Set LD_LIBRARY_PATH the same way as your start script would do, e.g. by commenting out the line that launches your application and then sourcing the script.
    The run ldd on the executable and see if it indeed sees all the libraries you have bundled.

    Cheers,
    _

  3. #3
    Join Date
    May 2014
    Posts
    3
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Symbol lookup error (undefined symbol) when deploying Qt5 app on clear Ubuntu mac

    Quote Originally Posted by anda_skoa View Post
    Set LD_LIBRARY_PATH the same way as your start script would do, e.g. by commenting out the line that launches your application and then sourcing the script.
    The run ldd on the executable and see if it indeed sees all the libraries you have bundled.
    _
    when I run ldd with setted LD_LIBRARY_PATH variable:
    Qt Code:
    1. LD_LIBRARY_PATH=. ldd app
    To copy to clipboard, switch view to plain text mode 
    I don't have not found libraries

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Symbol lookup error (undefined symbol) when deploying Qt5 app on clear Ubuntu mac

    I am not sure what you mean with that last sentence.
    Does ldd not find any libraries, or does it find all?

    Cheers,
    _

Similar Threads

  1. Replies: 0
    Last Post: 10th May 2011, 15:58
  2. Problem symbol lookup error
    By aurelbros in forum Newbie
    Replies: 1
    Last Post: 1st October 2010, 10:40
  3. Replies: 1
    Last Post: 22nd June 2010, 20:56
  4. symbol lookup error
    By knishaq in forum Qt Programming
    Replies: 1
    Last Post: 22nd June 2010, 16:22
  5. symbol lookup error when using plugins
    By macbeth in forum Qt Programming
    Replies: 3
    Last Post: 29th July 2006, 10:54

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.