我一直收到此错误"致命错误C1083:无法打开包含文件:' opencv2 / core.hpp':没有这样的文件或目录"。我正在使用Visual Studio 2012和OpenCV 3.0,opencv2 / core.hpp在OpenCV 3中,所以我不确定问题是什么。我在调试属性页面中设置了其他包含目录。知道我的问题是什么吗?
C / C ++ - >一般 - >其他包括依赖项 - > C:/ OpenCV的/构建; C:/ OpenCV的/生成/包括; C:/ OpenCV的/生成/包含/ OpenCV的; C:/ OpenCV的/模块/型芯/包括; C:/ OpenCV的/模块/ imgproc /包括; C:/ OpenCV的/模块/ FLANN /包括; C:/ OpenCV的/模块/ highgui /包括; C:/ OpenCV的/模块/ features2d /包括; C:/ OpenCV的/模块/ calib3d /包括; C:/ OpenCV的/模块/毫升/包括; C:/ OpenCV的/模块/视频/包括; C:/ OpenCV的/模块/ objdetect /包括; C:/ OpenCV的/模块/的contrib /包括; C:/ OpenCV的/模块/非游离/包括; C:/ OpenCV的/模块/照片/包括; C:/ OpenCV的/模块/遗留/包括; C:/ OpenCV的/模块/ GPU /包括; C:/ OpenCV的/模块/拼接/包括; C:/ OpenCV的/模块/ TS /包括; C:/ OpenCV的/模块/ videostab /包括; %(AdditionalIncludeDirectories)
链接器 - >一般 - >其他图书馆目录 - > $(OPENCV_DIR)\ 86 \ VC11 \ staticlib
链接器 - >输入 - > opencv_calib3d300d.lib; opencv_core300d.lib; opencv_features2d300d.lib; opencv_flann300d.lib; opencv_hal300d.lib; opencv_highgui300d.lib; opencv_imgcodecs300d.lib; opencv_imgproc300d.lib; opencv_ml300d.lib; opencv_objdetect300d.lib; opencv_photo300d.lib; opencv_shape300d.lib; opencv_stitching300d.lib; opencv_superres300d.lib; opencv_ts300d.lib; opencv_video300d.lib; opencv_videoio300d.lib; opencv_videostab300d.lib; libtiffd.lib; libpngd.lib; libjpegd.lib; libjasperd.lib; IlmImfd.lib; libwebpd.lib; ippicvmt.lib; zlibd.lib; comctl32.lib; vfw32.lib; %(AdditionalDependencies)
答案 0 :(得分:0)
“C / C ++ - > General - >附加包含依赖项”配置错误。 您应该添加以下条目: “C:/ OpenCV的/生成/包括; C:/ OpenCV的/生成/包含/ OpenCV的; C:/ OpenCV的/生成/包含/ OpenCV的/ opencv2;”