opencv4nodejs icon indicating copy to clipboard operation
opencv4nodejs copied to clipboard

If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvShowImage

Open Simon1059770342 opened this issue 6 years ago • 2 comments

terminate called after throwing an instance of 'std::runtime_error' what(): OpenCV 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, in file /www/wwwroot/http/capture_back/node_modules/opencv-build/opencv/opencv/modules/highgui/src/window.cpp, line 632, status -2 Aborted OS: Ubuntu16.04.3 python 2.7 Cmake 3.9 this Problem comfused me 4 days

Simon1059770342 avatar Jul 12 '19 12:07 Simon1059770342

Just build it alongside Qt. It was very confusing, but after about a week of googling I was able to fix it. Use -DWITH_QT flag before compilation export -DWITH_QT And then rebuild the whole thing.

steveunixson avatar Jul 16 '19 09:07 steveunixson

@steveunixson it still failed on ubuntu 18.0.4

paulgrammer avatar Dec 19 '20 17:12 paulgrammer