{"id":1328,"date":"2022-08-30T15:15:37","date_gmt":"2022-08-30T15:15:37","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/10\/how-to-use-cvblobslib-in-opencv-on-ubuntu-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:15:37","modified_gmt":"2022-08-30T15:15:37","slug":"how-to-use-cvblobslib-in-opencv-on-ubuntu-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-to-use-cvblobslib-in-opencv-on-ubuntu-collection-of-common-programming-errors\/","title":{"rendered":"How to use cvBlobsLib in OpenCV on Ubuntu-Collection of common programming errors"},"content":{"rendered":"<p>I have a huge problem using the cvBlobsLib with OpenCV under Ubuntu. I built the cvBlobsLib in the OpenCV lib folder and I included the header file to my main.cpp.<\/p>\n<p>However, despite all my tries and google searches, I can&#8217;t find how to make it work. When I create a <code>CBlobResult<\/code> variable, after make I get this error:<\/p>\n<pre><code>CMakeFiles\/bag.dir\/main.o: In function `main':\nmain.cpp:(.text+0x28d): undefined reference to `CBlobResult::CBlobResult()'\nmain.cpp:(.text+0x3de): undefined reference to `CBlobResult::~CBlobResult()'\nmain.cpp:(.text+0x3fd): undefined reference to `CBlobResult::~CBlobResult()'\ncollect2: ld returned 1 exit status\nmake[2]: *** [bag] Error 1\nmake[1]: *** [CMakeFiles\/bag.dir\/all] Error 2\nmake: *** [all] Error 2\n<\/code><\/pre>\n<p>I think the problem is that the linker can&#8217;t find the cvBlobsLib package. I&#8217;m using CMake, but I have no idea how to solve this problem.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-10 00:17:04. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I have a huge problem using the cvBlobsLib with OpenCV under Ubuntu. I built the cvBlobsLib in the OpenCV lib folder and I included the header file to my main.cpp. However, despite all my tries and google searches, I can&#8217;t find how to make it work. When I create a CBlobResult variable, after make I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1328","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1328"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1328\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}