问题:
The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa 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'
解决办法:
sudo apt-get install libgtk2.0-dev
然后重新编译opencv4。
再出现问题: Failed to load module "canberra-gtk-module"
解决办法:
sudo apt-get install libcanberra-gtk-module