{"id":343,"date":"2022-08-30T14:59:46","date_gmt":"2022-08-30T14:59:46","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/06\/issues-while-installing-opencv-library-for-php-collection-of-common-programming-errors\/"},"modified":"2022-08-30T14:59:46","modified_gmt":"2022-08-30T14:59:46","slug":"issues-while-installing-opencv-library-for-php-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/issues-while-installing-opencv-library-for-php-collection-of-common-programming-errors\/","title":{"rendered":"issues while installing Opencv library for PHP-Collection of common programming errors"},"content":{"rendered":"<p>I have tried to install the php build for Opencv provided by mgdm OpenCV-for-PHP<\/p>\n<p>I have tried<\/p>\n<pre><code>sudo phpize\nsudo .\/configure\nsudo make\n\nBuild complete.\nDon't forget to run 'make test'.\n<\/code><\/pre>\n<p>Then I have tried to run make test as per the instruction, and I got the following, and the PHP script is not working correctly.<\/p>\n<pre><code>PHP Deprecated:  Comments starting with '#' are deprecated in\n\/home\/dev001\/projects\/openCV\/OpenCV\/tmp-php.ini on line 1849 in Unknown on line 0\nPHP Deprecated:  Comments starting with '#' are deprecated in  \n\/home\/dev001\/projects\/openCV\/OpenCV\/tmp-php.ini on line 1849 in Unknown on line 0\n\/usr\/bin\/php: symbol lookup error:\/home\/dev001\/projects\/openCV\/OpenCV\/modules\/opencv.so:\nundefined symbol: cvSetErrMode\nPHP Deprecated:  Comments starting with '#' are deprecated in \nhome\/dev001\/projects\/openCV\/OpenCV\/tmp-php.ini on line 1849 in Unknown on line 0  \n\/usr\/bin\/php: symbol lookup error:\/home\/dev001\/projects\/openCV\/OpenCV\/modules\/opencv.so:   \nundefined symbol: cvSetErrMode\n\n=====================================================================\nPHP         : \/usr\/bin\/php  \nCWD         : \/home\/dev001\/projects\/openCV\/OpenCV\nExtra dirs  : \nVALGRIND    : Not used\n=====================================================================\nTIME START 2012-08-06 04:45:14\n=====================================================================\nFAIL Check for opencv presence [tests\/001.phpt] \n=====================================================================\nTIME END 2012-08-06 04:45:14\n\n=====================================================================\nTEST RESULT SUMMARY\n---------------------------------------------------------------------\nExts skipped    :    0\nExts tested     :    1\n---------------------------------------------------------------------\n\nNumber of tests :    1                 1\nTests skipped   :    0 (  0.0%) --------\nTests warned    :    0 (  0.0%) (  0.0%)\nTests failed    :    1 (100.0%) (100.0%)\nExpected fail   :    0 (  0.0%) (  0.0%)\nTests passed    :    0 (  0.0%) (  0.0%)\n---------------------------------------------------------------------\nTime taken      :    0 seconds\n=====================================================================\n\n=====================================================================\nFAILED TEST SUMMARY\n---------------------------------------------------------------------\nCheck for opencv presence [tests\/001.phpt]\n=====================================================================\n\nYou may have found a problem in PHP.\nWe would like to send this report automatically to the\nPHP QA team, to give us a better understanding of how\nthe test cases are doing. If you don't want to send it\nimmediately, you can choose \"s\" to save the report to\na file that you can send us later.\n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-11-06 03:11:36. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I have tried to install the php build for Opencv provided by mgdm OpenCV-for-PHP I have tried sudo phpize sudo .\/configure sudo make Build complete. Don&#8217;t forget to run &#8216;make test&#8217;. Then I have tried to run make test as per the instruction, and I got the following, and the PHP script is not working [&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-343","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/343","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=343"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/343\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}