[Gtkradiant] future gtkglext trouble: gdk_gl_font_use_pango_font(_for_display) API removed

Liam Busey liam.busey at comcast.net
Sat Nov 13 22:09:23 CST 2010


Hi everyone, I just wanted to give you all a heads up.


This may be old news to you but it looks like future versions of
gtkglext will not be usable with zeroradiant.


I was recently playing with my LFS system. I wanted to do some mapping
so I was going about getting my dependencies in order in preparation
for building zeroradiant. The release tarball for gtkglext didn't build
for me so I decided to use the git version and it compiled fine.

I then tried to build zeroradiant but got this error:


g++ -o build/debug/radiant/radiant/glwidget.o -c -pipe -Wall
-fmessage-length=0 -fvisibility=hidden -I/usr/include/libxml2 -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12 -pthread -I/usr/include/gtkglext-1.0
-I/usr/include/gtk-2.0 -I/usr/lib/gtkglext-1.0/include
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -fpermissive
-fvisibility-inlines-hidden -g -pipe -Wall -fmessage-length=0
-fvisibility=hidden -I/usr/include/libxml2 -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12 -pthread -I/usr/include/gtkglext-1.0
-I/usr/include/gtk-2.0 -I/usr/lib/gtkglext-1.0/include
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -DQ_NO_STLPORT
-D_DEBUG -Ibuild/debug/radiant/include -Iinclude
-Ibuild/debug/radiant/libs -Ilibs radiant/glwidget.cpp
radiant/glwidget.cpp: In function 'void
gtk_glwidget_create_font(GtkWidget*)': radiant/glwidget.cpp:223:71:
error: 'gdk_gl_font_use_pango_font' was not declared in this scope
scons: *** [build/debug/radiant/radiant/glwidget.o] Error 1 scons:
building terminated because of errors.


Hmmm ...

I googled "gdk_gl_font_use_pango_font" and found this thread:

[GtkGLExt] gdk_gl_font_use_pango_font: life support or euthanasia?
http://www.mail-archive.com/gtkglext-list@gnome.org/msg00649.html

Unfortunately it was euthanized on 2010-04-26:
[GB#604333] Remove the gdk_gl_font_use_pango_font(_for_display) API
functions.
http://git.gnome.org/browse/gtkglext/commit/?id=df7a7b35b80b395d7ba411c7f727970a46fb0588

I built a new gtkglext from just before the removal of the
gdk_gl_font_use_pango_font(_for_display) API functions. Zeroradiant
built successfully with this version of gtkglext (SHA1
1a6472adeeef9ce754fa21647968e04e3929e9d5).

I'm not much of a coder so I'm not sure if this a big deal or not but I
thought you all might like to know about it. If anything needs to be
done I'm willing to help.


-Liam



More information about the Gtkradiant mailing list