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:
Quote:
symbol lookup error: /path/to/app/./libQt5Widgets.so.5: undefined symbol: _ZTI15QGuiApplication
How fix it?
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,
_
Re: Symbol lookup error (undefined symbol) when deploying Qt5 app on clear Ubuntu mac
Quote:
Originally Posted by
anda_skoa
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:
Code:
LD_LIBRARY_PATH=. ldd app
I don't have not found libraries
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,
_