I've compiled opencv from source and installed it on a rpi3 Jessie (full) and I decided to do the same on a new rpi3 but with Jessie light this time. However when I try to run some of the examples, I am being told:
error: Gtk-WARNING **: cannot open display
(I run the pi with keyboard and a screen for this).
I have installed libgtk2.0-dev and opencv was built with the option WITH_GTK=ON.
Is it possible to have a frame to open in Jessie Light from within the console? What do I need for this? If it's not possible, what should I install to have my application to show in a frame: do I have to install a full GUI?
As a small step forward I have installed
xinit and now I have a small white terminal frame which opens at the top left of my 21" monitor, and now I can run my opencv application which opens within that frame.