当我使用这个命令时:
pkg-config --cflags opencv
我收到以下消息:
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
我在 Cent OS 6 上,通过互联网和堆栈找到了 Linux Ubuntu 的解决方案,但不是 Cent OS
我在 OpenCV 规范下尝试过
PKG_CONFIG_PATH=/usr/share/opencv/lib/pkgconfig:${PKG_CONFIG_PATH}
export PKG_CONFIG_PATH
还是不行。我如何确定 OpenCV 也安装在该目录中,我使用 whereis opencv 并触发了我/usr/share/