在ubuntu下编译opencv程序后,执行报下面到错误:
error while loading shared libraries: libopencv_core.so.2.4: cannot open shared object file: No such file or directory
解决方法:找到libopencv_开头到库的目录,在/usr/local/lib下面,在/etc/ld.so.conf.d/下面新建一个opencv.conf,里面写入/usr/local/lib,最后执行下sudo ldconfig -v即可。

相关文章:

  • 2021-09-19
  • 2022-12-23
  • 2021-12-23
  • 2021-07-13
  • 2022-12-23
  • 2021-06-03
  • 2021-09-28
  • 2022-12-23
猜你喜欢
  • 2021-08-02
  • 2021-05-16
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2021-06-05
相关资源
相似解决方案