最近在把opencv移植到aarch64平台,安装到目标板ok后,运行测试demo时总是提示错误:
Select timeout VIDIOC_DQBUF:Resource temporarily unavailable Terminate calledafter throwing instance of ‘cv::Exception’ What(): opencv(4.1.0) /home/ghostman/workspace/opencv-4.1.0/modules/highgui/src/window.cpp:693:error(-2:Unspecified error) The function is not implemented. Rebuild the librarywith Windows, GTK+ 2.0 or Cocoa support. If you are on Ubuntu or Debian, instlllibgtk2.0-dev and pkg-config, then re-run cmake or configure script in function‘cvWaitKey’ Aborted
尝试过如下方法: 1. 命令安装--- apt-get installlibgtk2.0-dev,但是无法定位到相关的资源包,在sources.list中更换过一些servers,结果仍failed。 2. 编译安装gtk--- 依赖库有10多个如zlib,pkg-config,libtool等,需要下载源码一一交叉编译。编译到pkg-config源码时出错,暂时没有找到解决的方法。 相同的方式安装opencv-4.1.0在x86平台测试过相同的这些demo是没有问题的
不知道有哪位移植成功的经验可以分享下?或者有什么好的方法或建议也可以分享下,谢谢
|