已解决: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

posted @ 2021-06-16 16:20  略略略——  阅读(3898)  评论(0编辑  收藏  举报