如何将目录添加到PKG_CONFIG_PATH环境变量?

时间:2018-09-25 02:26:50

标签: linux opencv ubuntu

我是使用Ubuntu的新手,问题是我想安装opencv,然后我想用这句话查看已安装程序的版本

pkg-config --modversion 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

我试图做所有事情,但是它不起作用,有人知道如何解决?

1 个答案:

答案 0 :(得分:0)

将开发包安装为:

apt install libopencv-dev