title: Opencv on mac include error
body: <p>I installed opencv on my mac mountain lion using the mac port. Then I wrote a OpenCV_util.cc file that has:</p>
  
  <pre><code>#include &lt;cv.h&gt;
  #include &lt;cvaux.h&gt;
  #include &lt;highgui.h&gt;
  </code></pre>
  
  <p>When I tried to compile it with <code>g++ OpenCV_util.cc</code>, I got the following error:</p>
  
  <pre><code>OpenCV_util.h:1:16: error: cv.h: No such file or directory
  OpenCV_util.h:2:19: error: cvaux.h: No such file or directory
  OpenCV_util.h:3:21: error: highgui.h: No such file or directory
  </code></pre>
  
  <p>Then I used </p>
  
  <pre><code>g++ OpenCV_util.cc -I /opt/local/include/opencv -L /opt/local/lib
  </code></pre>
  
  <p>The compiler found cv.h, cvaux.h, and highgui.h.
  However, I got the following error:</p>
  
  <pre><code>In file included from OpenCV_util.h:1,
                   from OpenCV_util.cc:1:
  /opt/local/include/opencv/cv.h:63:33: error: opencv2/core/core_c.h: No such file or directory
  /opt/local/include/opencv/cv.h:64:33: error: opencv2/core/core.hpp: No such file or directory
  </code></pre>
  
  <p>...... (A lot of errors like this)</p>
  
  <p>I checked /opt/local/include/opencv2/core/, all the files were there. I think it's because in cv.h, it has:</p>
  
  <pre><code>#include "opencv2/core/core_c.h"
  #include "opencv2/core/core.hpp"
  </code></pre>
  
  <p>but not the absolute path.</p>
  
  <p>How can I solve this ?</p>