{"id":719,"date":"2012-01-30T23:10:31","date_gmt":"2012-01-30T15:10:31","guid":{"rendered":"http:\/\/www.magicandlove.com\/blog\/?p=719"},"modified":"2012-01-30T23:17:56","modified_gmt":"2012-01-30T15:17:56","slug":"building-the-new-opencv-2-3-1-in-osx","status":"publish","type":"post","link":"http:\/\/www.magicandlove.com\/blog\/2012\/01\/30\/building-the-new-opencv-2-3-1-in-osx\/","title":{"rendered":"Building the new OpenCV 2.3.1 in OSX"},"content":{"rendered":"<p>I am testing with the OpenCV 2.3.1 in OSX. The <a href=\"http:\/\/mxcl.github.com\/homebrew\/\">Homebrew<\/a> and <a href=\"http:\/\/www.macports.org\/\">MacPorts<\/a> versions do not build with the <a href=\"http:\/\/openni.org\">OpenNI<\/a> option. To build it myself with <a href=\"http:\/\/www.cmake.org\/\">CMake<\/a> and <a href=\"http:\/\/developer.apple.com\/xcode\/\">XCode<\/a>, I came into compilation error with the flann include files: any.h and lsh_index.h. After searching for a while, I found the solution as stated in <a href=\"http:\/\/aitech.ac.jp\/cgmedia\/~sawano\/?p=152\">Hiroaki Sawano&#8217;s website<\/a> and patched the two files.<\/p>\n<p><strong>lsh.index.h<\/strong><\/p>\n<p><a href=\"http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/lsh_index.h.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-720\" title=\"lsh_index.h\" src=\"http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/lsh_index.h-300x222.png\" alt=\"\" width=\"300\" height=\"222\" srcset=\"http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/lsh_index.h-300x222.png 300w, http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/lsh_index.h-1024x759.png 1024w, http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/lsh_index.h.png 1128w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>any.h<\/strong><\/p>\n<p><a href=\"http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/any.h.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-721\" title=\"any.h\" src=\"http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/any.h-300x198.png\" alt=\"\" width=\"300\" height=\"198\" srcset=\"http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/any.h-300x198.png 300w, http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/any.h-1024x679.png 1024w, http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/any.h.png 1069w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>kinect_maps sample run<\/strong><\/p>\n<p><a href=\"http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/kinect_maps.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-723\" title=\"kinect_maps\" src=\"http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/kinect_maps-300x216.png\" alt=\"\" width=\"300\" height=\"216\" srcset=\"http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/kinect_maps-300x216.png 300w, http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2012\/01\/kinect_maps.png 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am testing with the OpenCV 2.3.1 in OSX. The Homebrew and MacPorts versions do not build with the OpenNI option. To build it myself with CMake and XCode, I came into compilation error with the flann include files: any.h and lsh_index.h. After searching for a while, I found the solution as stated in Hiroaki [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79,66],"tags":[3],"class_list":["post-719","post","type-post","status-publish","format-standard","hentry","category-software-2","category-testing","tag-opencv"],"_links":{"self":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/comments?post=719"}],"version-history":[{"count":2,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/719\/revisions"}],"predecessor-version":[{"id":724,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/719\/revisions\/724"}],"wp:attachment":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/media?parent=719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/categories?post=719"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/tags?post=719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}