0

我已阅读相关问题,但我无法解决我的问题。

我正在尝试在树莓派上编译 OpenCV C++ 代码。

OpenCV 需要包含 cv.h。当我尝试编译时,我得到:

“致命错误:cv.h:没有这样的文件或目录。”

我试过这些:

g++ -c -Ihome/pi/OpenCV-2.3.1/include/opencv file.cpp
g++ -c -Ipi/OpenCV-2.3.1/include/opencv file.cpp
g++ -c -IOpenCV-2.3.1/include/opencv file.cpp

你们有什么想法吗?

4

1 回答 1

0

This is a general question and not related only to OpenCV. For the general problem of including any header file 1. Try to see if the file is really at the included directory or no 2. Try to look for it in the folder

于 2013-03-09T23:14:42.680 回答