编译安装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
解决方法:
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
版权声明:本文为博主原创文章,转载请附上博文链接!
作者:六月的雨唯你
来源:CSDN
原文:https://blog.csdn.net/u013187057/article/details/80112705
版权声明:本文为博主原创文章,转载请附上博文链接!

加载中…