加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

编译安装opencv3.4使用imshow函数时出现错误rebuildthelibrarywithwindowsgtk+2.x

(2018-12-16 15:25:18)
分类: 机器视觉
编译安装opencv3.4 rebuild the library with windows gtk+ 2.x



在执行imshow函数时,出现如下error
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 cvShowImage, file /home/nvidia/Documents/opencv-3.4.0/modules/highgui/src/window.cpp, line 611 terminate called after throwing an instance of cv::Exception
解决方法:
除了提前安装 install libgtk2.0-dev and pkg-config 这两个包还在 还需要
在cmake时加入-D WITH_QT=ON 选项
WITH_GTK = ON 
WITH_GTK_2_X =ON

重新编译安装即可

---------------------
作者:六月的雨唯你
来源:CSDN
原文:https://blog.csdn.net/u013187057/article/details/80112705
版权声明:本文为博主原创文章,转载请附上博文链接!

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有