php-opencv / php-opencv

opencv 4.5+ with dnn module for php 7/8

Home Page:https://github.com/php-opencv/php-opencv-examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to rebuild php-opencv on Debian : no opencv detected in the system

scramatte opened this issue · comments

Hello,

I've rebuild opencv 4.7 from source and everything has working well.
No I'm trying to rebuild php-opencv, but I've got the following error on ./configure

...
checking for opencv... not found
configure: error: Ooops ! no opencv detected in the system

Note that I've executed ldconfig and opencv has been installed into. /usr/local

Hi,

The problem is with command pkg-config --exists opencv4 into configure file.
On my system lib is called opencv not opencv4 ...

Note that I'm running Debian 11 (Bullseye) with PHP 8.0

To be able to build the module, you must previously edit config.m4 and change reference to opencv4 to opencv and exec "phpize"