PDA

View Full Version : problem loading shared libraries



mickey
22nd July 2016, 08:09
Hello,
under Centos I installed a software, Webots (robotic stuff). When I launch it I got this message:


./webots-bin
./webots-bin: error while loading shared libraries: libQt5WebSockets.so.5: cannot open shared object file: No such file or directory

Does anyone can tell me if there is something wrong with my installation of QT, and how get rid of it?

Regards.

anda_skoa
22nd July 2016, 10:49
Maybe your centos installation didn't get the package for QWebSockets installed yet?
Or does the program come with its own Qt libraries?

Cheers,
_

mickey
22nd July 2016, 13:20
Sorry I'm a bit novice. What you said doesn't help me. However, it seems Webots comes with its own QT library:


[michele@fiordaliso ~/webots/include/qt] # ll
total 32
drwxr-xr-x. 3 4096 Mar 8 16:58 QtConcurrent
drwxr-xr-x. 3 4096 Mar 8 16:58 QtCore
drwxr-xr-x. 3 4096 Mar 8 16:58 QtGui
drwxr-xr-x. 3 4096 Mar 8 16:58 QtNetwork
drwxr-xr-x. 3 4096 Mar 8 16:58 QtOpenGL
drwxr-xr-x. 3 4096 Mar 8 16:58 QtPrintSupport
drwxr-xr-x. 3 4096 Mar 8 16:58 QtWebSockets
drwxr-xr-x. 3 4096 Mar 8 16:58 QtWidgets

Anyway, I don't know how to proceed....

anda_skoa
22nd July 2016, 17:52
Is webots-bin a script?
Does it set the LD_LIBRARY_PATH variable so that it points to the Qt libraries it ships with?

Cheers,
_

mickey
22nd July 2016, 19:08
webots-bin is an executable file
echo $LD_LIBRARY_PATH gives nothing...

webots-bin is an executable file
echo $LD_LIBRARY_PATH gives nothing...

Added after 33 minutes:

HI again,
typing this below I get this interesting lines:


ldd webots-bin | grep not
./webots-bin: /lib64/libpng12.so.0: version `PNG12_0' not found (required by /home/michele/webots/lib/libfreeimage.so.3)
libjpeg.so.8 => not found
libjpeg.so.8 => not found
libjpeg.so.8 => not found

Any suggestion about how solve it? I don't know why but there's no the line about 'QT'......

anda_skoa
23rd July 2016, 12:43
You should probably check with the orgin/vendor/author of the software.

Cheers,
_