Fatal error: gtk/gtkgl.h: No such file or directory

Hi,

I‘m trying to build the NEWEST release OpenCV-4.5.3 today. And I happened to notice:
whenever I enabled WITH_GTK ON, I got the error:

fatal error: gtk/gtkgl.h: No such file or directory

Did anybody come cross the same issue?

Thank you
Pei

is this WITH_OPENGL=ON ?

1 Like

@berak

Yes.

WITH_GTK                         ON
WITH_OPENGL                      ON

and ? gtk version ?
does the header exist ?

Did you check 'gtk/gtkgl.h' in Google ?

Google show me link like
“fatal error: gtk/gtk.h: No such file or directory” using make
and for Ubuntu solution can be installation C/C++ headers

sudo apt-get install libgtk2.0-dev

or

sudo apt-get install libgtk-3-dev

Other systems may need something similar.