编译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
即可。
参考资料: