Symbol lookup error (undefined symbol) when deploying Qt5 app on clear Ubuntu machine
I created default Qt5 widgets application, compiled is as a release on Ubuntu and prepare directory with next files:
- 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,
Hi and welcome to devnet,
Do you also have libQt5Gui deployed ?
Hi and thanks!
yes, I have libQt5Gui.so.5 library also in same dir...
Then run ldd on your executable from your script to see if there's something missing
Done it previously several times using:
LD_LIBRARY_PATH=. ldd app
but there are no not found libraries!
LD_LIBRARY_PATH=. is not a good idea, you should rather give the full path of the folder containing your application