PDA

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



c1tru55
22nd May 2014, 07:50
I have a Qt5 application, compiled for release on Ubuntu. I prepare directory with:


application
all *.so libraries from ldd output
.sh script from http://doc.qt.digia.com/qt-5.2/linux-deployment.html


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?

anda_skoa
23rd May 2014, 15:46
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,
_

c1tru55
23rd May 2014, 16:03
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:

LD_LIBRARY_PATH=. ldd app
I don't have not found libraries

anda_skoa
27th May 2014, 17:55
I am not sure what you mean with that last sentence.
Does ldd not find any libraries, or does it find all?

Cheers,
_