Missing libs in Opencv

I need to use darknet to run some projects and some libs seem to have moved. I can’t seem to find them.

ldd darknet
        linux-vdso.so.1 (0x00007ffc4e148000)
        libopencv_highgui.so.3.2 => not found
        libopencv_videoio.so.3.2 => not found
        libopencv_imgcodecs.so.3.2 => not found
        libopencv_imgproc.so.3.2 => not found
        libopencv_core.so.3.2 => not found
        libcuda.so.1 => /usr/lib/libcuda.so.1 (0x00007fb98a644000)
        libcudart.so.10.2 => /opt/cuda-10.2/lib64/libcudart.so.10.2 (0x00007fb98a3c6000)
        libcublas.so.10 => /opt/cuda-10.2/lib64/libcublas.so.10 (0x00007fb986110000)
        libcurand.so.10 => /opt/cuda-10.2/lib64/libcurand.so.10 (0x00007fb98206d000)
        libcudnn.so.7 => not found
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fb981e57000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007fb981d11000)
        libmvec.so.1 => /usr/lib/libmvec.so.1 (0x00007fb981ce5000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fb981cca000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fb981ca9000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007fb981add000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fb981ad6000)
        librt.so.1 => /usr/lib/librt.so.1 (0x00007fb981ac9000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007fb98c629000)
        libcublasLt.so.10 => /opt/cuda-10.2/lib64/libcublasLt.so.10 (0x00007fb97fc360

There is no such package in the repositories, is this from an AUR package?
Rebuild the AUR package.

1 Like

I cannot use the aur package as I have my own fork for work reasons. I just need to know figure out how to find those libs.

if in repos:

pacman -Fy
pacman -Fx libopencv_imgcodecs.so
extra/opencv 4.5.3-1

lib found but version wanted 3.2 is too old :wink: as libcudnn.so : we have cudnn v8 not 7…
own fork is for old versions


I will check it properly. Thanks a lot.

Own forks/builds need to keep up with used libraries, same as AUR packages.
Rebuild against current versions. If they don’t work for your fork, consider static builds or containers.

I just tried to build the aur package and it shows the same issue. I used to be able to rebuild. I just checked the compatibility chart of cudnn and cuda and theoretically my versions are oki.

The trick was to install opencv2 package from aur. It holds the old headers which cudnn was linked against.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.