title: Installing openCV 2.4 for C/C++ for Visual Studio
body: <p>I have been trying all day to install OpenCV (versions 2.4.1 and 2.4.2) for Visual Studio 2010 on Windows 7 for C/C++.</p>
  <p>I have been following this tutorial: <a href="http://docs.opencv.org/trunk/doc/tutorials/introduction/windows_install/windows_install.html" rel="noreferrer">http://docs.opencv.org/trunk/doc/tutorials/introduction/windows_install/windows_install.html</a></p>
  <p>I skipped installing 3rd party software (except python 2.7 and zlib from here: <a href="http://gnuwin32.sourceforge.net/packages/zlib.htm" rel="noreferrer">http://gnuwin32.sourceforge.net/packages/zlib.htm</a>).</p>
  <p>I run cmake, then open openCV.sln from openCV build directory, wait for visual studio to load and then build it. Visual studio gives 200 hundred errors which are just the following two repeated many times:</p>
  <blockquote>
  <p>error C1083: Cannot open include file: 'unistd.h': No such file or directory</p>
  <p>error LNK1104: cannot open file '....\lib\Debug\opencv_core241d.lib'</p>
  </blockquote>
  <p>&quot;OpenCV build directory&quot;/bin/Release does not contain any *.exe file, just a plenty of *.pdb files, among which I can see contours.pdb. The tutorial says that I should see contours.exe there.</p>
  <p>As there are no *.exe files, I understand that two errors I get during build are critical. I would be grateful for any ideas that could help me solve them.</p>