php-opencv icon indicating copy to clipboard operation
php-opencv copied to clipboard

configure: error: Ooops ! no opencv detected in the system....

Open Savvy1995 opened this issue 6 years ago • 2 comments

checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for pkg-config... found checking for opencv... not found configure: error: Ooops ! no opencv detected in the system

Savvy1995 avatar Sep 12 '19 13:09 Savvy1995

checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for pkg-config... found checking for opencv... not found configure: error: Ooops ! no opencv detected in the system

在configure 文件中可以得到的是 检测的是opencv4 但是 按照安装文档的话,我们安装的是3.3.目前正在尝试更新到opencv4.1.1;

Woodenwang avatar Sep 23 '19 10:09 Woodenwang

@Savvy1995 @Woodenwang , what does this command do with you ?

pkg-config --libs opencv4

Try this before :

export PKG_CONFIG=/usr/bin/pkg-config && export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib64/pkgconfig/ && export LD_LIBRARY_PATH="/usr/local/lib64/"

And if it's not working, try to compile opencv with this params :

-D OPENCV_GENERATE_PKGCONFIG=ON
-D OPENCV_PC_FILE_NAME=opencv4.pc 

benjy8001 avatar Dec 22 '20 13:12 benjy8001