Symbol lookup error (undefined symbol) when deploying Qt5 app on clear Ubuntu machine
-
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,
-
Hi and welcome to devnet,
Do you also have libQt5Gui deployed ?
-
Then run ldd on your executable from your script to see if there's something missing
-
LD_LIBRARY_PATH=. is not a good idea, you should rather give the full path of the folder containing your application