I would like to use cvBlobsLib library in my project.
I use MSVC++ 2008 which is (9.0)
I have some explanations how to compile cvBlobsLib but they are written for 6.0
I do not know how should I use them in my compiler though.
Any help experts? :-)
cvBlobsLib has been developed using Microsoft Visual C++ (6.0) and also can be used in .NET. A Linux version could be downloaded here.
cvBlobsLib is distributed in a static library (.lib). To use it, it is needed to build the .lib file and later use that lib file in the desired project. To build the .lib file, simply open the MSVC++ project and build it (debug or release version).
To build the project where the library is to be used follow this steps (MSVC++ 6.0):
In "Project/Settings/C++/Preprocessor/Additional Include directories" add the directory where the blob library is stored
In "Project/Settings/Link/Input/Additional library path" add the directory where the blob library is stored and in "Object/Library modules" add the cvblobslib.lib file
Include the file "BlobResult.h" where you want to use blob variables.
In "Project/Settings/C++/Precompiled Headers" select "Not use precompiled headers" (Thanks Brendan)
NOTE: Verify that in the project where the cvblobslib.lib is used, the MFC Runtime Libraries are not mixed:
Check in "Project->Settings->C/C++->Code Generation->Use run-time library" of your project and set it to
Debug Multithreaded DLL (debug version) or to Multithreaded DLL ( release version ).
Check in "Project->Settings->General" how it uses the MFC. It should be "Use MFC in a shared DLL".
NOTE: The library can be compiled and used in .NET using this steps, but the menu options may differ a little
NOTE 2: In the .NET version, the character sets must be equal in the .lib and in the project. [OpenCV yahoo group: Msg 35500]