Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to use vcblobslib in oppencv ubuntu

I have a huge problem using the cvblobslib with opencv under Ubuntu. I built the cvblobslib int the opencv lib folder and i included the header file to my main.cpp. However all my tires and google search I cant find how to make it work. when I create a CBlobResult variable, after make i get this error:

CMakeFiles/bag.dir/main.o: In function `main':
main.cpp:(.text+0x28d): undefined reference to `CBlobResult::CBlobResult()'
main.cpp:(.text+0x3de): undefined reference to `CBlobResult::~CBlobResult()'
main.cpp:(.text+0x3fd): undefined reference to `CBlobResult::~CBlobResult()'
collect2: ld returned 1 exit status
make[2]: *** [bag] Error 1
make[1]: *** [CMakeFiles/bag.dir/all] Error 2
make: *** [all] Error 2

I think the problem is that the linker can't find the cvblobslib package. I'm using cmake file but i have no idea how to solve this problem.

click to hide/show revision 2
No.2 Revision

How to use vcblobslib cvBlobsLib in oppencv ubuntuOpenCv Ubuntu

I have a huge problem using the cvblobslib with opencv under Ubuntu. I built the cvblobslib int the opencv lib folder and i included the header file to my main.cpp. However all my tires and google search I cant find how to make it work. when I create a CBlobResult variable, after make i get this error:

CMakeFiles/bag.dir/main.o: In function `main':
main.cpp:(.text+0x28d): undefined reference to `CBlobResult::CBlobResult()'
main.cpp:(.text+0x3de): undefined reference to `CBlobResult::~CBlobResult()'
main.cpp:(.text+0x3fd): undefined reference to `CBlobResult::~CBlobResult()'
collect2: ld returned 1 exit status
make[2]: *** [bag] Error 1
make[1]: *** [CMakeFiles/bag.dir/all] Error 2
make: *** [all] Error 2

I think the problem is that the linker can't find the cvblobslib package. I'm using cmake file but i have no idea how to solve this problem.