CentOS8 调用Opencv452 imshow 报错:
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
直接安装libgtk2.0-dev不成功,需要安装libgtk2.0-dev的依赖
yum install gtk*
yum install gtk* 安装所有gtk组件,自动解决依赖问题。
Cmake 重新configure,generate,make -j8 ,sudo make install,问题解决。