Hello, I compiled opencv successfully, so I thought, but when I run a script, I got this opencv error:
Here is what I don't understand
My makefile looks like this:
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D WITH_GTK=ON \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.3.0/modules
-D BUILD_EXAMPLES=ON ..
What am I doing wrong?
Thanks.
OpenCV Error: 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, , then re-run cmake or configure script) in cvShowImage, file /home/pi/opencv-3.3.0/modules/highgui/src/window.cpp, line 605 Traceback (most recent call last): File "/home/pi/Desktop/Pi_Projects/NewCV/cv.py", line 30, in <module> cv2.imshow('img',img) cv2.error: /home/pi/opencv-3.3.0/modules/highgui/src/window.cpp:605: error: (-2) 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 cvShowImageMine is the Raspbian Stretch, so it is Debian.
Here is what I don't understand
install libgtk2.0-dev and pkg-config, how do I, I already installed libgtk2.0-dev, but how do I configure script in function cvShowImage?
My makefile looks like this:
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D WITH_GTK=ON \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.3.0/modules
-D BUILD_EXAMPLES=ON ..
What am I doing wrong?
Thanks.