opencv+linux+clion配置问题

问题一,pkg-config找不到opencv安装路径和版本信息

查看openCV 安装库

pkg-config opencv --libs

报错

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

 

pkg-config的用法

 http://blog.sina.com.cn/s/blog_8af6bbd10101hfdj.html

 

解决:

下载的opencv4版本问题,卸载重新安装opencv3 成功。

opencv+clion

不用配置,CMAKELists.txt 包含路径即可

 

 

 

 

 

 

你可能感兴趣的:(opencv+linux+clion配置问题)