首页 > Linux系统 > system > opencv1.0安装 ../../cxcore/include/cxmisc.h:133:6: error: #elif with no expression
2014
05-28

opencv1.0安装 ../../cxcore/include/cxmisc.h:133:6: error: #elif with no expression

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
最后编辑:
作者:admin
捐 赠如果您觉得这篇文章有用处,请支持作者!鼓励作者写出更好更多的文章!

留下一个回复