Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
scramatte opened this issue Jan 1, 2023 · 1 comment

Comments

@scramatte
Copy link

scramatte commented Jan 1, 2023

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

@scramatte
Copy link
Author

scramatte commented Jan 1, 2023

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"

@morozovsk morozovsk changed the title Unable to rebuild php-opencv : no opencv detected in the system Unable to rebuild php-opencv on Debian : no opencv detected in the system Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant