Friday, March 16, 2012

Using cvblob with Visual Studio 2008

The cvblob is Blob library for OpenCV. However, the original version only applied for Linux. If you want to use the cvblob with  Visual Studio 2008. The following are steps to convert.

  1. Using static library with Visual Studio 2008 by adding the cvBlob files.
  2. Generate the cvblobd.lib with Multi-threaded Debug (/MTd) (C/C++/Code Generation/Runtime Library)
  3. Generate the cvblob.lib with Multi-threaded (/MT)
  4. Start a new application with Visual C++ and add  cvblobd.lib (Linker/Input/AdditionalDependencies). 
  5. Set Multi-threaded Debug (/MTd) (C/C++/Code Generation/Runtime Library)
  6. Configure a new application with Visual C++ and add  cvblob.lib (Linker/Input/AdditionalDependencies).
  7. Set  with Multi-threaded (/MT).
  8. If using the DLL method instead, then the "__declspec(dllexport)" should be inserted into the cvblob.h

No comments: