After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 636831 - gtkglextmm doesn't build with Gtk+ 2.22.0 and Gtkmm 2.22.0
gtkglextmm doesn't build with Gtk+ 2.22.0 and Gtkmm 2.22.0
Status: RESOLVED OBSOLETE
Product: gtkglext
Classification: Other
Component: bindings/gtkglextmm
1.2.0
Other Linux
: Normal normal
: Future
Assigned To: Mukund Sivaraman
Mukund Sivaraman
Depends on:
Blocks:
 
 
Reported: 2010-12-08 23:59 UTC by Krzysztof Klimonda
Modified: 2016-01-02 18:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Krzysztof Klimonda 2010-12-08 23:59:05 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.
Comment 1 Emmanuele Bassi (:ebassi) 2014-11-09 22:45:06 UTC
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.