There is a problem happen when i install opencv according the document which given by Official. Here comes the 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 cvNamedWindow, file /home/jesus/opencv/opencv/modules/highgui/src/window.cpp, line 483 terminate called after throwing an instance of 'cv::Exception' what(): /home/jesus/opencv/opencv/modules/highgui/src/window.cpp:483: 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
I solve the problem with this solution:
- 1.install libgtk2.0-dev and pkg-config use apt-get
- 2.run "ccmake ." and enable WITH_GTK and WITH_GTK_2_X
- 3.run "make && make install"
- 4.ldconfig