简介
cmake .. && make
成功后,执行可执行文件报错
bug内容
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(3.4.10) /home/cheng/somelib/opencv-3.4.10/modules/highgui/src/window.cpp:658:
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 apt-get install libgtk2.0-dev pkg-config
再次运行程序,依旧报错。
这个依赖应该在安装opencv之前就给装上,然后再安装opencv才会生效
现在顺序反了,不起作用
没办法,别折腾了,重装opencv吧,重装又快又简单。