1

I keep getting this error "Fatal error C1083: Cannot open include file: 'opencv2/core.hpp': No such file or directory". I am using Visual Studio 2012 and OpenCV 3.0 and opencv2/core.hpp is in OpenCV 3 so I'm not sure what the problem is. I have set up the additional include directories in the debug property pages. Any idea what my problem is?

C/C++-> General -> Additional include dependencies -> C:/opencv/build; C:/opencv/build/include; C:/opencv/build/include/opencv; C:/opencv/modules/core/include; C:/opencv/modules/imgproc/include; C:/opencv/modules/flann/include; C:/opencv/modules/highgui/include; C:/opencv/modules/features2d/include; C:/opencv/modules/calib3d/include; C:/opencv/modules/ml/include; C:/opencv/modules/video/include; C:/opencv/modules/objdetect/include; C:/opencv/modules/contrib/include; C:/opencv/modules/nonfree/include; C:/opencv/modules/photo/include; C:/opencv/modules/legacy/include; C:/opencv/modules/gpu/include; C:/opencv/modules/stitching/include; C:/opencv/modules/ts/include; C:/opencv/modules/videostab/include; %(AdditionalIncludeDirectories)

Linker -> general -> additional library directories -> $(OPENCV_DIR)\x86\vc11\staticlib

Linker -> Input -> 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)

13
  • show include and library directory, and additional libraries Commented Oct 27, 2015 at 18:19
  • I've updated the question now Commented Oct 27, 2015 at 18:30
  • additional include should be just C:/opencv/build/include; Commented Oct 27, 2015 at 18:32
  • I changed it to that and I am still getting the error Commented Oct 27, 2015 at 18:47
  • have you deleted all others include paths? Commented Oct 27, 2015 at 18:49

1 Answer 1

-1

the "C/C++-> General -> Additional include dependencies" config error. You should add the following entry: "C:/opencv/build/include;C:/opencv/build/include/opencv;C:/opencv/build/include/opencv/opencv2;"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.