报错:
/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_video.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_cudawarping.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_cudastereo.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_cudabgsegm.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_photo.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_cudev.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_cudaoptflow.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_cudalegacy.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_cudaobjdetect.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_cudaarithm.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_superres.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_videoio.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_viz.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_core.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_videostab.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_shape.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_features2d.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_stitching.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_cudacodec.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_imgcodecs.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_cudafilters.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_calib3d.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_cudaimgproc.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_cudafeatures2d.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_ml.so.3.2 is not a symbolic link/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_flann.so.3.2 is not a symbolic link
解决办法:
终端输入
sudo ldconfig -v
找到其中某个错误行
/sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libopencv_cudawarping.so.3.2 不是符号链接libopencv_cudawarping.so.3.2 -> libopencv_cudawarping.so.3.2.0
在终端重新建立符号链接
sudo ln -sf /usr/lib/x86_64-linux-gnu/libopencv_cudawarping.so.3.2.0 /usr/lib/x86_64-linux-gnu/libopencv_cudawarping.so.3.2