{"id":369,"date":"2022-08-30T15:00:12","date_gmt":"2022-08-30T15:00:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/06\/opencv-make-error-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:00:12","modified_gmt":"2022-08-30T15:00:12","slug":"opencv-make-error-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/opencv-make-error-collection-of-common-programming-errors\/","title":{"rendered":"openCV make error-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve been trying to run make on the recent release of openCV (2.4.3) but I&#8217;ve been having problems. I&#8217;ve created a build folder in the openCV directory and ran the following commands:<\/p>\n<pre><code>cmake -G \"Unix Makefiles\" ..\nmake -js \n<\/code><\/pre>\n<p>I get the following error:<\/p>\n<pre><code>Linking CXX shared library ..\/..\/lib\/libopencv_highgui.dylib\n[ 35%] Building CXX object modules\/video\/CMakeFiles\/opencv_video.dir\/src\/bgfg_gaussmix.cpp.o\nUndefined symbols for architecture x86_64:\n  \"_ModPlug_GetCurrentOrder\", referenced from:\n     _modplug_read_packet in libavformat.a(libmodplug.o)\n  \"_ModPlug_GetCurrentPattern\", referenced from:\n     _modplug_read_packet in libavformat.a(libmodplug.o)\n  \"_ModPlug_GetCurrentRow\", referenced from:\n     _modplug_read_packet in libavformat.a(libmodplug.o)\n  \"_ModPlug_GetCurrentSpeed\", referenced from:\n     _modplug_read_packet in libavformat.a(libmodplug.o)\n  \"_ModPlug_GetCurrentTempo\", referenced from:\n     _modplug_read_packet in libavformat.a(libmodplug.o)\n  \"_ModPlug_GetLength\", referenced from:\n     _modplug_read_header in libavformat.a(libmodplug.o)\n  \"_ModPlug_GetMessage\", referenced from:\n     _modplug_read_header in libavformat.a(libmodplug.o)\n  \"_ModPlug_GetName\", referenced from:\n     _modplug_read_header in libavformat.a(libmodplug.o)\n<\/code><\/pre>\n<p>There&#8217;s more but the rest of the message is the similar to that. It looks like the linker is having a hard time with highgui.<\/p>\n<p>I&#8217;ve received a similar error when I (somehow miraculously) had openCV installed previously (I deleted the former installation) when trying to run code using XCode<\/p>\n<p>Any thoughts?<\/p>\n<ol>\n<li>\n<p>I don&#8217;t know the cause of this particular problem. However, I found a workaround that works for my situation. I disabled ffmpeg and it seems to compile ok. I cleaned out my build directory and ran cmake with the option -DWITH_FFMPEG=OFF<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-11-06 03:30:48. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been trying to run make on the recent release of openCV (2.4.3) but I&#8217;ve been having problems. I&#8217;ve created a build folder in the openCV directory and ran the following commands: cmake -G &#8220;Unix Makefiles&#8221; .. make -js I get the following error: Linking CXX shared library ..\/..\/lib\/libopencv_highgui.dylib [ 35%] Building CXX object modules\/video\/CMakeFiles\/opencv_video.dir\/src\/bgfg_gaussmix.cpp.o [&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-369","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/369","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=369"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/369\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}