{"id":371,"date":"2022-08-30T15:00:14","date_gmt":"2022-08-30T15:00:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/06\/how-do-i-install-opencv-for-php-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:00:14","modified_gmt":"2022-08-30T15:00:14","slug":"how-do-i-install-opencv-for-php-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-do-i-install-opencv-for-php-collection-of-common-programming-errors\/","title":{"rendered":"How do I install OpenCV for PHP?-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to install OpenCV for PHP but it doesn&#8217;t work.<br \/>\nhttps:\/\/github.com\/mgdm\/OpenCV-for-PHP<br \/>\nI did the following<\/p>\n<p>installed OpenCV<\/p>\n<blockquote>\n<p>$ sudo aptitude install libcv2.1<\/p>\n<\/blockquote>\n<p>tried to install opencv for php<\/p>\n<blockquote>\n<p>$ sudo phpize &amp;&amp; .\/configure &amp;&amp; make &amp;&amp; make install<\/p>\n<\/blockquote>\n<p>tried to uses it and I got an error<\/p>\n<blockquote>\n<p>$ php examples\/test_convert.php<\/p>\n<\/blockquote>\n<p><code>php: symbol lookup error: \/usr\/lib\/php5\/20090626\/opencv.so: undefined symbol: cvSetErrMode<\/code><\/p>\n<p>I thought the OpenCV for PHP needs the OpenCV libs address,<\/p>\n<blockquote>\n<p>$ ldd \/usr\/lib\/php5\/20090626\/opencv.so linux-vdso.so.1 =&gt; (0x00007fff45de2000) libc.so.6 =&gt; \/lib\/x86_64-linux-gnu\/libc.so.6 (0x00007fd2d74c3000) \/lib64\/ld-linux-x86-64.so.2 (0x00007fd2d7a8a000)<\/p>\n<\/blockquote>\n<p>so I tried this<\/p>\n<blockquote>\n<p>$ phpize $ .\/configure edit Makefile &lt; OPENCV_SHARED_LIBADD = &gt; OPENCV_SHARED_LIBADD = \/usr\/lib\/libcv.so.2.1 $ make<\/p>\n<p>$ sudo make install<\/p>\n<\/blockquote>\n<p>and it still doesnt work. I&#8217;m using Ubuntu11.04.<\/p>\n<p>Do you have any idea?<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-06 03:30:58. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to install OpenCV for PHP but it doesn&#8217;t work. https:\/\/github.com\/mgdm\/OpenCV-for-PHP I did the following installed OpenCV $ sudo aptitude install libcv2.1 tried to install opencv for php $ sudo phpize &amp;&amp; .\/configure &amp;&amp; make &amp;&amp; make install tried to uses it and I got an error $ php examples\/test_convert.php php: symbol lookup error: [&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-371","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/371","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=371"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/371\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}