On Thu, 2015-02-26 at 02:42 +0100, YuGiOhJCJ Mailing-List wrote:
> I try to compile gtkmm-3.10.1:
[snip]
> window.cc:950:117: error: invalid conversion from 'guint {aka unsigned
> int}' to 'GdkWindowHints' [-fpermissive]
>    gdk_window_constrain_size(const_cast<GdkGeometry*>(&(geometry)),
> flags, width, height, &(new_width), &(new_height));
> 
> ^
> In file included from /usr/include/gtk-3.0/gdk/gdktestutils.h:26:0,
>                  from /usr/include/gtk-3.0/gdk/gdk.h:54,
>                  from ../gdkmm/color.h:36,
>                  from ../gdkmm/dragcontext.h:30,
>                  from ../gdkmm/window.h:31,
>                  from window.cc:9:
> /usr/include/gtk-3.0/gdk/gdkwindow.h:1053:12: error:   initializing
> argument 2 of 'void gdk_window_constrain_size(GdkGeometry*,
> GdkWindowHints, gint, gint, gint*, gint*)' [-fpermissive]
>  void       gdk_window_constrain_size      (GdkGeometry    *geometry,
>             ^
> make[2]: *** [window.lo] Error 1
> make[2]: Leaving directory `/tmp/build/gtkmm-3.10.1/gdk/gdkmm'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/build/gtkmm-3.10.1'
> make: *** [all] Error 2
> 
> I am on Slackware 14.1 and I am using:
> -glibmm-2.38.2
> -gtk+3-3.14.9
> -gdk-pixbuf2-2.30.8
> -pango-1.36.8-i486
> -atk-2.14.0-i486
> -glib2-2.42.1-i486
[snip]

Your GTK+ is 2 stable releases newer than your gtkmm. You are likely to
see this kind of problem when they are not in sync.

The C API changed slightly:
https://git.gnome.org/browse/gtk
+/commit/?id=4b42526e1f33b0ceb9231cee5e15861b97c05726

I could probably track down how we fixed the build for this change in
gtkmm, but it would be hard to apply it to a tarball. You should just
update your gtkmm version. But building from source is always going to
be difficult.


-- 
Murray Cumming
murr...@murrayc.com
www.murrayc.com


_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to