1、出现的问题如题目所示
hello opencv
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, file /opt/arm/opencv-3.2.0/modules/highgui/src/window.cpp, line 565
terminate called after throwing an instance of 'cv::Exception'
what(): /opt/arm/opencv-3.2.0/modules/highgui/src/window.cpp:565: error: (-2) 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
Aborted
这里是让安装libgtk2.0-dev,也就是一个支持界面的opencv库,在编译的时候没有选择这一项,因为是要用QT来开发的。
解决方法是查看opencv的环境变量是否配置正确,就是路径是不是自己安装的路径,使用的命令如下:
pkg-config --