Yup, confident I didn’t overwrite /lib/x86_64-linux-gnu/libnvcuvid.so
. I just checked again to confirm:
% ls -l /lib/x86_64-linux-gnu/libnvcuvid*
lrwxrwxrwx 1 root root 15 Jan 9 04:06 /lib/x86_64-linux-gnu/libnvcuvid.so -> libnvcuvid.so.1
lrwxrwxrwx 1 root root 23 Jan 9 04:06 /lib/x86_64-linux-gnu/libnvcuvid.so.1 -> libnvcuvid.so.545.29.06
-rw-r--r-- 1 root root 3528 Apr 1 00:01 /lib/x86_64-linux-gnu/libnvcuvid.so.545.29.06
Looks like /lib/x86_64-linux-gnu/libnvcuvid.so
and /lib/x86_64-linux-gnu/libnvcuvid.so.1
are linked to /lib/x86_64-linux-gnu/libnvcuvid.so.545.29.06
as expected.
And no, I didn’t copy the stubs into the CUDA toolkit directory in /usr/local either.
And here’s what you asked for:
% cat ~/build/opencv/build/CMakeVars.txt | grep CUDA_nvcuvid_LIBRARY
CUDA_nvcuvid_LIBRARY=/lib/x86_64-linux-gnu/libnvcuvid.so
And I acknowledge your note about CMake being able to automatically pick up the location of libnvcuvid.so.1
. I guess I got a bit paranoid about it after the series of attempts at building OpenCV to get the CUDA decoder to work.
Cheers!