美文网首页
OpenCV Error: Unspecified Error(

OpenCV Error: Unspecified Error(

作者: 小灰_06e4 | 来源:发表于2020-04-20 14:28 被阅读0次

Ubuntu 或者 Debian 系统显示窗口的时候遇到了这个问题

error: (-2: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 function ‘cvNamedWindow’

解决办法:

需要先安装gtk2.0库,再安装opencv

1、apt-getinstall install libgtk2.0-dev

2、安装成功之后,重新运行cmake对opencv的源码进行编译安装

参考链接:

https://blog.csdn.net/u010632165/article/details/81431030

https://blog.csdn.net/youlinhuanyan/article/details/104109599

相关文章

网友评论

      本文标题:OpenCV Error: Unspecified Error(

      本文链接:https://www.haomeiwen.com/subject/ywfdihtx.html