當我用這個命令去:OpenCV的包沒有在pkg配置搜索路徑發現爲CentOS
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
我在美分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/
作品是CentOS的不是Ubuntu的 –