ubuntu18.04+opencv4.1.2 安装 If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config

问题:

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

 

你可能感兴趣的:(linux)