Ask Your Question

fwuwind's profile - activity

2014-01-03 10:53:57 -0500 received badge  Necromancer (source)
2013-12-23 21:19:50 -0500 answered a question Release Mode - "error C1083: Cannot open include file: 'opencv2/core/core.hpp': No such file or directory"

I had the same problem. It might be a bug of VS2012.

I use property sheets to config OpenCV settings. When I was creating the property pages earlier today, the VS2012 crashed. Then I came back and finished the sheets, and found the problem.

I double checked the settings both Debug and Release in VS2012. Both of them showed the correct include directories, but the Release mode failed to compile. I could open the header files in text editor through context menu under Release mode, so I think the IDE known the path but the compiler didn't.

Then I restarted VS2012, and I saw wave lines below the #include directives, only in Release mode. The property page settings vanished. Then I edited and restarted, and settings vanished again. After I compared the property sheets, I found the property file was broken. The broken file contained something like "< ItemDefinitionGroup />", which might be illegal format. I didn't save the broken file, so it's might not be the exact text, but this one does reproduce the problem. With this broken file, VS2012 cannot save settings. It neither emits a warning nor rebuilds the file, but shows as if it have saved the file. It is definitely a bug.

After repaired the property file, the problem solved in my computer. I wish you the best of luck!