关于opencv3.4.5报错问题

在Ubuntu20.04上使用OpenCV 3.4.5时总是报以下错误,后改为使用OpenCV 4.5.5可以解决此问题
terminate called after throwing an instance of ‘cv::Exception’
what(): OpenCV(3.4.5) /home/wang/opencv-3.4.5/modules/highgui/src/window.cpp:634: 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’

你可能感兴趣的:(opencv,ubuntu20.04,ubuntu,opencv)