Problem instaling libgtk2.0-dev and pkg-config
Hi friends, developers, I do not know much English, but I'm trying to learn opencv without Russian instructions for installing opencv. There was a problem at the step of launching the facedetect.py test window from the /opencv-4.1.1/samples/facedetect.py folder.
Here is this piece of program error:
cv2.error: 0pencV(4.1.1 ) /home/pi/opencv/opencv-4.1.1/modules/highgui/src/window.cpp:627: e rror: (-2:Unspecified error) The function is not implemented. Rebuild the library with Wind ows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and p kg-config, then re-run cmake or configure script in function 'cvShowImage
there is no gui (in opencv) on your computer. What is your platform? Did you build opencv?
For raspberry pi 3/4. In root:
or pip:
pi@raspberrypi: $ apt show pkgconf Рackage: pkgconf Version: 1.6.0-1 Priority: optional Section: devel Maintainer: Andrej Shadura <[email protected] installed-size:="" 233="" kВ="" provides:="" pkg-config="" (0.29-1)="" depends:="" libcб="" (>3d="" 2.4),="" libdpkg-perl="" breaks:="" pkg-config="" (>="" 0.29-1)="" homepage:="" https:="" github.com="" pkgconf="" pkgconf="" |down="" load-size:="" 56,5="" kв="" АРТ="" -sources:="" http:="" raspbian.raspberrypi.org="" raspbian="" busterfmain="" armhf="" packages="" description:="" manage="" compile="" and="" link="" flags="" for="" libraries="" pkgconf="" is="" a="" replacement="" for="" pkg-config,="" a="" system="" for="" managing="" library="" compile="" and="" link="" flags="" that="" works="" with="" automake="" and="" autoconf="" ..<="" p="">
pkgconf does not bundle any third-party libraries or depend third-party libraries. on any third-party libraries.
Pkg-config was installed before compiling the opencv package
LBerger, Python 3.7.3 (default April 3 2019) [GCC 8.2.0] on Linux Type "help", "copyright", "credits" or "license" for more information
sudo apt-get install cmake cmake-curses-gui libgtk2.0-dev
With this command I install libgtk2.0-dev, then I don’t understand where to look for a problem place further.
What is your cmake output?
sudo apt install libgtk-3-dev
That's not cmake output. run cmake and insert in your question using edit button what cmake writes on screen
LBerger, tell me what kind of output cmake?
That is my cmake output AT line 123 my GUI configuration use WIN32UI. What's your cmake output for GUI?