Ubuntu 或者 Debian 系統顯示窗口的時候遇到了這個問題
error: (-2: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 function ‘cvNamedWindow’
解決辦法
apt-get install install libgtk2.0-dev pkg-config
安裝成功之后,重新運行cmake對源碼進行編譯,安裝。