QuickCam Team Forums

Full Version: Cannot find shared library error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just pulled the latest SVN code for libwebcam/uvcdynctrl, and it built for me just fine. After installing it, I tried to execute uvcdynctrl-0.2, and I received the following error:

uvcdynctrl-0.2: error while loading shared libraries: libwebcam.so.0.1.1: cannot open shared object file: No such file or directory

I looked at the make install output, and it puts this in /usr/local/lib

I am running an x86_64 system and OS, so I figured it should be in /usr/local/lib64 instead.

I moved the library and the symbolic link into /usr/ocal/lib64, but I get the same error. Can someone just point me in the right direction?

Thanks.
Never mind on this question. I figured it out myself. Fedora 9 doesn't include the /usr/local/libxx directories in ld.so.conf by default. I added it, and did a ldconfig as root, and now it runs.

Sorry about that.
Great to hear that you've figured it out. One question though: Does that mean that 'make install' copies the files into the wrong directory on 64-bit?

mrubli Wrote:
Great to hear that you've figured it out. One question though: Does that mean that 'make install' copies the files into the wrong directory on 64-bit?


Yes. The default location for 64-bit libraries is /usr/lib64, /usr/local/lib64, etc. Only 32-bit libraries should be in /usr/lib, /usr/local/libt, etc.

The fact that it was in lib versus lib64 was not really my issue however. I had to change ld.so.conf because the /usr/local lib directories were not defined there.

So, the install target of make should be updated to detect the type of executable that was built, and install it in lib64 versus lib.

Andy

I'm a little surprised that cmake doesn't handle that automatically but I will investigate it when I get a chance. Thanks for the bug report!
On Fedora 9 32Bit it copies to wrong directoriers as well.

It used to copy to /usr/local/lib
but it needs to copy to /usr/lib

After Ive corrected this it works well for me.
No more bugs like: "uvcdynctrl: error while loading shared libraries: libwebcam.so.0.1.1: cannot open shared object file: No such file or directory"

Acid
Reference URL's