c++ - 程序无法运行 OpenCV,即使其他人可以

标签 c++ linux ubuntu opencv

我正在尝试运行一个使用 OpenCV 的程序,我已经让它在其他机器上运行,我机器上的其他程序也使用它运行,但是这个程序返回:

programname.cpp:  fatal error: opencv/cv.h: No such file or directory

任何人都知道如何修复路径或可能出了什么问题?我正在运行 Ubuntu 12.04 和 OpenCV-2.4.0

最佳答案

更改自:

#include <opencv/cv.h>

到:

#include <opencv2/opencv.hpp>

关于c++ - 程序无法运行 OpenCV,即使其他人可以,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10858397/

相关文章:

grails - 方法 : org. codehaus.groovy.runtime.GStringImpl.split() 没有签名

linux - 如何从 bash 中的 .csv 文件的第一行获取特定列?

linux - 如何在 Fedora 中安装 NDK?

ubuntu - ejabberd start 在 user_drv 模块中崩溃

c++ - 是否可以在 google protobuf 中为类型(枚举或消息)定义别名?

c++ - 在 Windows/C++ 中强制显示分辨率

c++ - 在构造函数中创建线程

c++ - CMake Qt 基于 Windows 链接器问题构建

linux - 如何格式化 ifconfig 的输出

swift - libicuuc.so.55 : cannot open shared object file