Theta V/Ubuntu 20.04: `./gst_viewer` gives `error while loading shared libraries: libuvc.so.0

I’m trying to livestream over USB from my Theta V to a Laptop running Ubuntu 20.04; eventually wanna run on Jetson Nano.

I ran the instructions here with no issue:

I did get this warning from cmake:

ali@l-scoale-01:~/Dev/libuvc-theta/build$ cmake ..
-- libusb-1.0 found using pkgconfig
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "80") 
-- Found JPEG library using standard module
CMake Warning (dev) at /snap/cmake/1070/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (JPEG) does
  not match the name of the calling package (JpegPkg).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/FindJpegPkg.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:45 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so  
-- Building libuvc with JPEG support.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ali/Dev/libuvc-theta/build

When I try to run ./gst_viewer I get:

./gst_viewer: error while loading shared libraries: libuvc.so.0: cannot open shared object file: No such file or directory

I do seem to have the shared lib installed:

ali@l-scoale-01:~/Dev/libuvc-theta-sample/gst$ sudo find / -name libuvc.so
/usr/local/lib/x86_64-linux-gnu/libuvc.so
/home/ali/Dev/libuvc-theta/build/libuvc.so

What am I doing wrong?

Thank you,

Did you reboot the computer or run sudo ldconfig

what is the output so cat /etc/ld.so.conf.d/libc.conf

Do you have /usr/local/lib in there?

1 Like

Excellent, I think that was it.

I believe I achieved the same results by just running sudo /sbin/ldconfig -v after the installation process; I can now get video on the Nano.

My next issue is that while the gst_viewer application works, I’m not seeing the Theta V as a video device

Since it is a different issue, I will close this one as having a solution, and move to a new issue so future readers find it more easily:

https://community.theta360.guide/t/ricoh-theta-v-on-nano-works-but-does-not-show-up-as-a-video-device/7893/2

yes, this is the same. Most ubuntu systems will run ldconfig at time of boot automatically.

For the /dev/video*, you need to run v4l2loopback.