How to perform the build OpenCVBlobsLib
Lib in Microsoft Visual Studio 2013 (works on previous versions)
Asked
Active
Viewed 392 times
0

Ricardo
- 677
- 4
- 11
- 35
-
just be warned, that cvBlobsLib is from times of opencv1.0, the code is very outdated, and rather should be avoided. you probably can do whatever you want with opencv's onboard functions. – berak Dec 26 '14 at 12:16
-
Is OpencvBlobsLib: http://opencvblobslib.github.io/opencvblobslib/ – Ricardo Dec 26 '14 at 12:21
-
ah, ok. mistook it for the old one. – berak Dec 26 '14 at 12:36
-
you can remove the down vote? – Ricardo Dec 26 '14 at 12:38
-
not mine, unfortunately – berak Dec 26 '14 at 12:46
1 Answers
1
Step by step (I put this tutorial in github issues but closed)
- I download your cvBlobslib (https://github.com/OpenCVBlobsLib/opencvblobslib)
- I create an Empty Project in Visual Studio 2013
- I put the 6 .h and 5 .cpp in the project
- I Binding all OpenCV dependencies (https://www.youtube.com/watch?v=v-VgWxkVp2w)
- I download this file: pthreads-w32-2-9-1-release.zip 1.17MB and Unzip in this Folder: C:\pthreads.hWin32 (I create this folder)
- This folder had 3 Subfolders: "Pre-built.2" , "pthreads.2" , "QueueUserAPCEx".
- "Pre-built.2" had 3 Subfolders: "lib"(2 Subfolders: x64 with libpthreadGC2.a(Exetension .a) and pthreadVC2.lib, x86 I don't use it), "dll", "include" with 3 .h files.
- I add "include" in "Additional include directories".
- I add "lib" in "Additional library directory".
- I add "pthreadVC2.lib" (inside lib folder)
- change the "Configuration Type" in Configuration Properties -->> General to Static Library .lib
- I add this Line above all includes and in All .cpp:
#pragma warning(disable: 4996)//This function or variable may be unsafe
- in main menu I select
Release / x64
and I click in "BUILD" -->> "Build Solution" - In folder:
C:\Users\Ricardo\Documents\Visual Studio 2013\Projects\cvBlobsLib\x64\Release
HadcvBlobsLib.lib
with 11.554 KB.
You can download the Result here: https://www.dropbox.com/s/bctrg3o8jihnf2r/cvBlobsLib.lib

Ricardo
- 677
- 4
- 11
- 35