我正在尝试将 OpenCV 集成到应用程序中并面临以下一些问题。
error while loading shared libraries: libopencv_imgproc.so.4.1: cannot open shared object file: No such file or directory
但是,当我检查ldd和readelf的输出时,以下是差异。
$readelf -d <app name>
0x0000000000000001 (NEEDED) Shared library: [libopencv_imgcodecs.so.4.1]
0x0000000000000001 (NEEDED) Shared library: [libopencv_core.so.4.1]
$ldd <app name>
libopencv_imgcodecs.so.4.1 => <path to opencv>/opencv/lib/libopencv_imgcodecs.so.4.1 (0x00007f04555b2000)
libopencv_imgproc.so.4.1 => <path to opencv>/opencv/lib/libopencv_imgproc.so.4.1 (0x00007f0453e8f000)
libopencv_core.so.4.1 => <path to opencv>/opencv/lib/libopencv_core.so.4.1 (0x00007f0452774000)
如上所示,readelf输出中缺少libopencv_imgproc。有人可以指出导致这种行为的原因吗?