OpenCV Error:If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config,then re-run cmake
ubuntu16.04在用opencv2.4.13编译某项目时,出现错误:
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/linzhiwei/opencv-2.4.13/modules/highgui/src/window.cpp, line 501 terminate called after throwing an instance of 'cv::Exception' what(): /home/linzhiwei/opencv-2.4.13/modules/highgui/src/window.cpp:501: 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 cvShowImage
解决方案:
按以上步骤重新编译一下即可解决。
博客参考:https://blog.****.net/qq_35851675/article/details/88383640