{"id":358,"date":"2022-08-30T15:00:01","date_gmt":"2022-08-30T15:00:01","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/06\/opencv-undefined-symbols-_cvcvtcolor-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:00:01","modified_gmt":"2022-08-30T15:00:01","slug":"opencv-undefined-symbols-_cvcvtcolor-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/opencv-undefined-symbols-_cvcvtcolor-collection-of-common-programming-errors\/","title":{"rendered":"openCV undefined symbols _cvCvtColor-Collection of common programming errors"},"content":{"rendered":"<p>In Terminal, &#8220;cd&#8221; to the directory that contains your OpenCV library (or actually libraries, as I see a few of them are built when I look at this &#8220;how to build OpenCV tutorial&#8221;) and then type in this command:<\/p>\n<p>&#8220;<code>nm -arch x86_64 _________.a<\/code>&#8221; (fill in the name of the library where the underscores are)<\/p>\n<p>This dumps out all the symbols of the library. You can egrep or search for &#8220;<code>cvCvtColor<\/code>&#8220;.<\/p>\n<p>My guess is that you&#8217;ve built OpenCV for 32-bit only (and this will be easy to see if you get absolutely no symbols when specifying &#8220;<code>-arch x86_64<\/code>&#8221; in the &#8220;<code>nm<\/code>&#8221; command) and that you need to also build your OpenCV libraries for 64-bit (x86_64).<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-06 03:16:21. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>In Terminal, &#8220;cd&#8221; to the directory that contains your OpenCV library (or actually libraries, as I see a few of them are built when I look at this &#8220;how to build OpenCV tutorial&#8221;) and then type in this command: &#8220;nm -arch x86_64 _________.a&#8221; (fill in the name of the library where the underscores are) This [&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-358","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/358","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=358"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/358\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}