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 ‘cvShowImage’
已经确认sudo qpt-get ibstall libgtk2.0-dev pkg-config ;
重新编译安装opencv:
cd /opencv-path/opencv-3.4.3/build/
sudo make uninstall
make clean
cmake -DWITH_GTK=ON -DWITH_GTK_2_X=ON ..
make all -j8
sudo make install
sudo ldconfig