pkg config - Serbipunk/notes GitHub Wiki

Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found

看起来,从code开始安装的opencv,无论3.4还是4.5,都没法在pkg-config中找到。。。

但是在/usr/local/share中有相应的cmake文件夹