kbingham/libcamera

cam: error while loading shared libraries: libcamera.so.0.0.4: cannot open shared object file: No such file or directory

b-morgan opened this issue · 1 comments

Using the instructions in the README.rst, I'm attempting to install libcamera on a Libre Computer AML-S905X-CC (Le Potato) running Debian GNU/Linux 11 (bullseye), Linux libre 6.0.19-02543-g73f2949c2dd9 #1 SMP PREEMPT_DYNAMIC Tue Feb 14 05:59:27 UTC 2023 aarch64 GNU/Linux. I believe I installed all of the dependancies

I had a couple of false starts due to a lack of swap space (100 -> 1024) and permissions which I solved with sudo ninja -C build install. After what appears to be a successful completion, cam --version fails with:
cam: error while loading shared libraries: libcamera.so.0.0.4: cannot open shared object file: No such file or directory

It appears that libcamera.so.0.0.4 is located at:
/usr/local/lib/aarch64-linux-gnu/libcamera.so.0.0.4
/usr/local/lib/aarch64-linux-gnu/libcamera.so

sudo ldconfig apparently fixed it. Perhaps that should be included in the README.rst

Posted to the libcamera development list:

https://patchwork.libcamera.org/patch/18647/