kbingham / libcamera

libcamera - Making complex cameras easy. This is a personal fork, please use the upstream repository at https://git.libcamera.org/libcamera/libcamera.git/
https://libcamera.org
Other
173 stars 69 forks source link

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

Closed b-morgan closed 1 year ago

b-morgan commented 1 year ago

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

kbingham commented 1 year ago

Posted to the libcamera development list:

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