php-opencv
php-opencv copied to clipboard
configure: error: Ooops ! no opencv detected in the system....
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
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;
@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