ubuntu下opencv编译出错
发布时间: 2022-12-17 22:12:18
A. 我再ubuntu下安装OpenCV是编译的时候没有提示错误,但是在运行程序的时候提示:
简单的解释就是你的GTK+2.x要先于OpenCV安装,所以它给的解决方法是You should remove the current installation of opencv from your system; rebuild your opencv lib after installing gtk dev lib in the correct path; and reinstall the compiled opencv lib.
B. Ubuntu中编译opencv,make时出错,提示:opencv/core/core.hpp no such file or directory.源
找不到头文件的原因 。要么当前指定的头文件各个目录不包含这个头文件所在的目录;要么这个头文件根本不存在。
解决方法:在工程属性中“C++目录”里,把<opencv_path>\build\include或类似的include目录添加到头文件目录
热点内容