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
解决方案: