已解决:libopencv_core.so.4.5 cannot open shared object file

  1. find the location:
    sudo find / -name "libopencv_core.so.4.5"
  2. create and add file "/etc/ld.so.conf.d/opencv.conf"
    /usr/local/lib
  3. sudo ldconfig

reference:

https://stackoverflow.com/questions/12335848/opencv-program-compile-error-libopencv-core-so-2-4-cannot-open-shared-object-f

https://linux.die.net/man/8/ldconfig

原文地址:https://www.cnblogs.com/mrlonely2018/p/14889870.html