Ask Your Question
0

VC14 fatal error C1083: Cannot open include file: 'opencv/cxcore.h': No such file or directory

asked 2017-05-01 18:06:34 -0600

lamiastella gravatar image

for

// OpenCV Libraries
#include <opencv/cxcore.h>
//#include "opencv2/core/core.hpp"

I get the following error:

I have the paths in the environment variables (OPENCV_DIR, OPENCV_VER and also the path to the bin dir in Path variable).

Please suggest what could be done?

edit retag flag offensive close merge delete

Comments

http://imgur.com/a/BXv2K http://imgur.com/a/iYUZN http://imgur.com/a/DkQ4s http://imgur.com/a/nTbC4

lamiastella gravatar imagelamiastella ( 2017-05-01 18:06:42 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-05-03 00:03:15 -0600

berak gravatar image

updated 2017-05-03 01:48:52 -0600

  • you set your "Additional Include Dirs" in VS wrong, try to point it to "c:/opencv/build/include"
  • opencv/cxcore.h is from the deprecated, no more maintained c-api. you MUST NOT use it. if your code contains IplImage, - throw it away entirely, it's no more usable.
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-05-01 18:06:34 -0600

Seen: 4,811 times

Last updated: May 03 '17