I had installed OpenCV following these steps (). After trying to compile one examples,i got this error :
OpenCV Error: Unspecified error (The function is no
@oxydron/Elliott Miller: I have Ubuntu 16.04 LTS environment with gtk 3 pre installed. I got the same error for Caffe build (master branch), Try the following steps, may be it should work for you.
sudo apt-get install libgtk-3-dev
cmake .. (WITH_GTK=ON and other settings),
make
And bingo the error was gone... in my python caffe code
Please note:
The CMAKE configuration should reflect GTK+ 3.x instead of GTK+ 2.x
GUI:
-- QT: NO
-- GTK+ 3.x: YES (ver 3.18.9)
-- GThread : YES (ver 2.48.2)
-- GtkGlExt: NO
-- OpenGL support: NO
-- VTK support: NO