mercredi 27 mars 2013

How to install OpenCV 3.2.1 on Visual Studio 2010 ( Windows XP)

This tutorial assumes that you have already installed Microsoft Visual Studio 2010 and downloaded the library OpenCV 3.2.1( here...)
These step are supposed to be done for every new project in Visual Studio 2010 (Not like Microsoft Visual Express, it is supposed to be configurated just one time)
  1. Create your new project.
  2. Go to Project>Properties>Configuration Properties>VC++ Directories>Include Directories (<Edit...>) then add the path of include files: D:\opencv2.3.1\build\include
  3. Go to Project>Properties>Configuration Properties>Linker> General > Additional Library Directories (<Edit...>) and add Library path: D:\opencv2.3.1\build\x86\vc10\lib
  4. Go to Project>Properties>Configuration Properties>Linker > Input > Additional Dependencies and add all library you are going to use in your project (Here I will mention the main used Lib)

  5. Don't forget to add the path of the bin file (D:\opencv2.3.1\build\x86\vc10\bin) in the Environment Variables dialogue (the System Variables box select Path and then Edit).