我在Rpi上安装了Debian操作系统。在安装opencv时,我在"/home/pi/Opencv-2.4.3/release/lib".中创建"opencv.pc"文件。然后输入以下两个命令:
将以下两行添加到“bash.bashrc”文件并保存该文件:
然后,在输入以下命令后,我得到了以下错误:
解决办法是什么?
错误是..
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
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
contours.c:1:39: fatal error: opencv2/imgproc/imgproc_c.h: No such file or directory
compilation terminated.
compiling convert_cascade.c
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..etc..发布于 2013-07-24 18:48:44
要向bashrc添加正确的路径,可以执行以下步骤
https://stackoverflow.com/questions/17831136
复制相似问题