libdc1394.so.22 is a library used for camera access in libraries such as OpenCV and is superseded by libdc1394-dev in Ubuntu 24.04. One quick fix is to install libdc1394-dev and create a symbolic link to libdc1394.so.22.
1. Install libdc1394-dev
sudo apt install libdc1394-dev
2. Locate lib installation path
I am no expert and keep forgetting the basics. So I searched for the install path using:
ldconfig -p | grep libdc1394
We might get an output like this:
libdc1394.so.25 (libc6,x86-64) => /lib/x86_64-linux-gnu/libdc1394.so.25
libdc1394.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libdc1394.so
3. Create symlink
Usually the linker in Ubuntu searches for .so files in /usr/lib first. So I created a symbolic link in that location:
sudo ln -sf /lib/x86_64-linux-gnu/libdc1394.so /usr/lib/libdc1394.so.22
And voila! The app runs (ಥ◡ಥ)
Top comments (0)