fatal error: opencv2/core.hpp: No such file or directory #include “opencv2/core.hpp“
opencv
OpenCV: 开源计算机视觉库
项目地址:https://gitcode.com/gh_mirrors/opencv31/opencv
免费下载资源
·
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
In file included from cppdbprocess.cpp:15:
include/postprocess_op.h:17:10: fatal error: opencv2/core.hpp: No such file or directory
#include "opencv2/core.hpp"
在编译一个工程文件的时候,工程依赖OpenCV3以上,拉取了一个OpenCV4 docker镜像,编译的时候报上面的错误。
在/usr/local/lib/pkgconfig下面没有opencv.pc,但是有opencv4.pc,解决的方式就是建立一个opencv4.pc的软连接,命名为opencv.pc
GitHub 加速计划 / opencv31 / opencv
77.38 K
55.71 K
下载
OpenCV: 开源计算机视觉库
最近提交(Master分支:2 个月前 )
c3747a68
Added Universal Windows Package build to CI. 10 天前
9b635da5 - 10 天前
更多推荐
已为社区贡献2条内容
所有评论(0)