title: package opencv was not found in the pkg-config search path for centos
body: <p>When I go with this command:</p>
  
  <pre><code> pkg-config --cflags opencv
  </code></pre>
  
  <p>I get the following message:</p>
  
  <pre><code>Package opencv was not found in the pkg-config search path.
  Perhaps you should add the directory containing `opencv.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'opencv' found
  </code></pre>
  
  <p>I'm on Cent OS 6, have found the solution for Linux Ubuntu over the internet and here on stack but not for Cent OS</p>
  
  <p>I tried under OpenCV specifications with</p>
  
  <pre><code>PKG_CONFIG_PATH=/usr/share/opencv/lib/pkgconfig:${PKG_CONFIG_PATH}
  export PKG_CONFIG_PATH
  </code></pre>
  
  <p>Still it doesn't work. How can I be sure OpenCV is also installed in that directory, I used whereis opencv and it triggered me <code>/usr/share/</code></p>