GNOME Bugzilla – Bug 636831
gtkglextmm doesn't build with Gtk+ 2.22.0 and Gtkmm 2.22.0
Last modified: 2016-01-02 18:58:42 UTC
In the gtkglext/gtkmm/gl/widget.cc, the sequence of #include directives is important - if gtk/gtkglwidget.h is included before widget.h, it includes gdk.h without undefing GDK_DISABLE_DEPRECATED - this leads to GdkSpanFunc not being defined and compilation errors. The fix is to first include widget.h which includes the right gdkmm header which defines GDK_DISABLE_DEPRECATED before including gdk.h. Attached is a (misnamed) patch that switches the sequence of includes in gtkglext/gtkmm/gl/widget.cc so it builds.
the GtkGLExt bindings are maintained outside the gtkglext repository, and both the bindings and the library are basically unmaintained. GTK+ 3.16, released February 2015, will have OpenGL support out of the box, and the gtkmm bindings should be able to pick that up.