opencv2包含文件在哪里? [英] Where are the opencv2 include files?

查看:104
本文介绍了opencv2包含文件在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力寻找应该包含在名为"opencv2"的目录中的包含文件!我已经从此处下载了OpenCV-2.4.0.tar.bz2. a>提取文件并运行cmake,这似乎成功构建了库.

I'm struggling to find the include files that should be in a directory names "opencv2"! I've downloaded OpenCV-2.4.0.tar.bz2 from here and extracted the files and ran cmake, which seemed to build the library successfully.

问题在于"opencv2"的"include"目录下似乎缺少大量的头文件.目前唯一的头文件是"opencv.hpp",其中包括不存在的其他文件的完整集合.有谁知道我可以从哪里获得这些文件?

The problem is that under the "include" directory for "opencv2" there seem to be tons of header files missing. The only header file there at the moment is "opencv.hpp", which includes a whole set of other files which aren't there. Does anyone have any idea where I can get these files from?

谢谢!

推荐答案

模块的头文件位于其自己的目录中.例如,您可以在/modules/calib3d/include/opencv2/calib3d中找到calib3d.hpp. CMake创建的Makefile知道这些地址,因此,当您make install时,头文件都被复制到/usr/local/include/opencv2中.

The header files of the modules are in their own directories. E.g., you can find calib3d.hpp in /modules/calib3d/include/opencv2/calib3d. The Makefile created by CMake knows these addresses, hence when you make install the header files are all copied into /usr/local/include/opencv2.

这篇关于opencv2包含文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆