红联Linux门户
Linux帮助

opencv-package 'eigen3' not found的解决

发布时间:2017-04-25 15:19:00来源:linux网站作者:heroacool
编译Autoware时,出现:
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
 
找不到OpenCV, eigen3, pcl_io-1.7这些package。
则用命令pkg-config –modversion opencv查看一下,确实找不到。
 
然后在系统的/usr目录下:
find . -name libopencv*
 
找到opencv的库文件存放的目录,/usr/lib/x86_64-linux-gnu,在命令行或者~/.bashrc中输入:
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/lib/pkgconfig/:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/share/pkgconfig
即可。
 
参考资料:
opencv-package 'eigen3' not found的解决
 
本文永久更新地址:http://www.linuxdiyf.com/linux/30291.html