opencv1.0安装 ../../cxcore/include/cxmisc.h:133:6: error: #elif with no expression:
修改cxmisc.h,在133行。把最后一个elif换成else
vi显示行号:
1.在VI的命令模式下输入“:set nu” 或“:set number”
2.修改vi配置文件“vi ~/.vimrc”,在其中添加“set nu”
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
解决方法是将/usr/local/lib/pkgconfig中的opencv.pc拷贝到/usr/lib/pkgconfig中
还要设置环境变量
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH