Tiny Core Linux
Tiny Core Extensions => TCE Talk => Extension requests => Topic started by: robc on January 04, 2011, 02:36:06 PM
-
http://projects.gnome.org/gtkglext/download.html#gtkglextmm (http://projects.gnome.org/gtkglext/download.html#gtkglextmm)
-
This will not build with the gtkmm in the repo. gtkmm needs to be updated to the same version as gtk+. Some functions have been deprecated which prevents the build of gtkglextmm.
-
gtk2 is 2.22.1 and gtkmm is 2.22.0 - is the .1 making the difference?
-
I am getting this error when attempting to compile gtkglextmm:
/usr/local/include/gdkmm-2.4/gdkmm/region.h:267: error: 'GdkSpanFunc' has not been declared
That function has been deprecated since 2.22:
http://library.gnome.org/devel/gdk/stable/gdk-Points-Rectangles-and-Regions.html#GdkSpanFunc (http://library.gnome.org/devel/gdk/stable/gdk-Points-Rectangles-and-Regions.html#GdkSpanFunc)
From region.h:
lines 30-37:
// We use GdkSpanFunc in the (deprecated) API, so we must temporarily undef GDK_DISABLE_DEPRECATED.
// We shouldn't have used that C type in the API anyway, but we can't break API.
// Temporarily undef GDK_DISABLE_DEPRECATED, redefining it later if appropriate.
// We need this to use _GtkBoxChild, which we use in our (deprecated) API.
#if defined(GDK_DISABLE_DEPRECATED) && !defined(GTKMM_GDK_DISABLE_DEPRECATED_UNDEFED)
#undef GDK_DISABLE_DEPRECATED
#define GTKMM_GDK_DISABLE_DEPRECATED_UNDEFED 1
#endiflines 258-267:
/** Calls a function on each span in the intersection of @a region and @a spans.
*
* Deprecated: 2.22: There is no replacement.
* @param spans An array of Gdk::Spans.
* @param n_spans The length of @a spans.
* @param sorted <tt>true</tt> if @a spans is sorted wrt. the y coordinate.
* @param function Function to call on each span in the intersection.
* @param data Data to pass to @a function.
*/
void spans_intersect_foreach(GdkSpan* spans, int n_spans, bool sorted, GdkSpanFunc function, gpointer data);
Here is a dumb question...why are they using it after they deprecated it?
I was able to get around this by removing -DGDK_DISABLE_DEPRECATED from gtkglext/gtkmm/gl/Makefile