注:博客中有些图片部分为了省事,借用了别人博客的图片,相关部分注意事项相同。若有侵权,请联系删除!
一,Opencv3.2移植到arm
Opencv3.2
ubuntu16.04
目标板:飞凌嵌入式iMx6-ul
前一:把opencv源码,/modules/highgui/src/windows.cpp 文件第583行和654行注释掉!!!非常重要!!!
583 行: CV_NO_GUI_ERROR("cvshowImage")
654行:CV_NO_GUI_ERROR("cvWaitKey")
不然程序运行时会提示如下让先安装gtk+2.x之类的错误。应该是没有显示屏显示的原因。
“OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow”
1,配置交叉编译环境,见imx6-ul软件手册
2,在源码目录下打开终端 /cmake-gui // 启动cmake
在cmake界面中进行配置