g++: error: `pkg-config: No such file or directory
<p>I installed cygwin and followed this for installation <a href="http://cs.calvin.edu/curriculum/cs/112/resources/installingEclipse/cygwin/" rel="nofollow">http://cs.calvin.edu/curriculum/cs/112/resources/installingEclipse/cygwin/</a></p>

<p>then I run this on my cmd</p>

<pre><code>cd opencv
cd sources
cd samples
cd cpp
g++ -ggdb `pkg-config --cflags --libs opencv` facedetect.cpp -o facedetect
</code></pre>

<p>It resulted into this</p>

<pre><code>g++: error: `pkg-config: No such file or directory
g++: error: opencv`: No such file or directory
g++: error: unrecognized command line option '--cflags'
g++: error: unrecognized command line option '--libs'
</code></pre>

<p>what I'm trying to do is to run facedetect.cpp in opencv to test my classifier any help to fix this issue or provide alternative approach is appreciated </p>