title: Visual Studio 2012: 'opencv2/opencv.hpp' : No such file or directory (C1083)
body: <p>This question was asked several times, there are some answers, but this problem is more specific, the additional directories path is set correctly (files are found). </p>
  
  <p>Nevertheless building my project i get the following error:</p>
  
  <pre><code> fatal error C1083: Cannot open include file: 
   'opencv2/opencv.hpp': No such file or directory
  </code></pre>
  
  <p><strong>but i can right click on the file and open it in visual studio 2012?</strong></p>
  
  <p><img src="https://i.stack.imgur.com/Ua10E.jpg" alt="File can be found without a problem"></p>
  
  <p>I tried:</p>
  
  <p>1) specifying the full path: WORKS!</p>
  
  <pre><code>#include &lt;D:\frameworks\opencv_2_4\build\include\opencv2\opencv.hpp&gt;
  </code></pre>
  
  <p>2) Putting the file to C:\ Doesn't Work! (add. directories added)</p>
  
  <p>3) Empty project with the same include syntax. (add. directories added). WORKS!</p>
  
  <p>4) I've configured a VS2010 Version of the same project with CMake, and i have there the same problems.</p>
  
  <p>Any hints what could be causing this error? </p>