Page 1 of 1

error while loading shared libraries:

Posted: Thu Jul 04, 2019 12:48 pm
by usama1
I am getting this error on my Ubuntu 16.04.
error while loading shared libraries: cannot open shared object file: No such file or directory
I have been using openvibe for 1 year now and I have never encountered this problem before. I was first using Openvibe 2.0.0 and it always worked fine until this error started showing after I stopped using openvibe for some time.
I have checked the lib folder in dist/sdk-Release/lib/ and the is available there.
I have done re-compilation and it didnt go away. I also downloaded the source code of the latest OpenVIBE 2.2.0 and compiled it and I got the same results.
I have googled this error and unfortunately I cannot find a solution anywhere. I will be very thankful if someone was to help me in this.

Re: error while loading shared libraries:

Posted: Thu Jul 04, 2019 3:31 pm
by Thibaut
I have never seen this error, the only thing I can say is to delete the folders dist, build, dependencies. Put OpenViBE at the top of your folder hierarchy to avoid too long path names.

Re: error while loading shared libraries:

Posted: Thu Jul 04, 2019 4:26 pm
by usama1
Ok, So now I just found a 1 liner command that fixed the issue in case of the OpenVIBE 2.0.0:
$ sudo /sbin/ldconfig -v
This has not fixed the problem with OpenVIBE 2.2.0 but I think I just need to get rid of one of the openvibes and run this line again to make it work. For now, I am happy with OpenVIBE 2.0.0 as I was doing project on that one.

What this line does is as follows according to the article:
ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/, and in the trusted directories (/lib and /usr/lib). The cache is used by the run-time linker, or ldconfig checks the header and filenames of the libraries it encounters when determining which versions should have their links updated.

I dont know why I couldnt find this useful article earlier while using Google. I found it on Bing for some reason.

Re: error while loading shared libraries:

Posted: Wed Jul 10, 2019 7:51 am
by Thibaut
Hi, I did not care that you had two openvibe simultaneously. MAYBE, the compilation tries to find a shortcut with a previous version that it does not find in relative path.