On Thu, 26 Feb 2015 08:40:54 +0100
Markus Kolb <markus.kolb+gt...@tower-net.de> wrote:

> Am 2015-02-26 02:42, schrieb YuGiOhJCJ Mailing-List:
> > Hello,
> > 
> > I try to compile gtkmm-3.10.1:
> > $ ./configure --prefix=/usr
> > $ make
> > make  all-recursive
> [...]
> > -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/harfbuzz -Wall -g -O2 -MT
> > window.lo -MD -MP -MF .deps/window.Tpo -c window.cc  -fPIC -DPIC -o
> > .libs/window.o
> > window.cc: In static member function 'static void
> > Gdk::Window::constrain_size(const Geometry&, guint, int, int, int&,
> > int&)':
> > 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,
> >             ^
> [...]
> > 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
> > 
> > Do you see how to resolve this problem please?
> 
> If you want to use the version combination, you'll need a cast.
> GdkWindowHints is an enum. You can cast the int to a GdkWindowHints at 
> window.cc:950:117.
> I don't know if there are some more problems after this.
> Maybe try to use a newer gtkmm version.
> 
> http://ftp.gnome.org/pub/GNOME/sources/gtkmm/
> 
> 3.14 should do it.

In fact, I was not aware of two things.

The first thing is that gtkmm and gtk+ version numbers must match to work 
together and to compile fine.
For example, I was able to compile with gtk+-3.8.2 and gtkmm-3.8.1 probably 
because the version number is the same (3.8).
It is just my guess so tell me if it is wrong.

The second thing is that it exists a newer version of gtkmm.
Indeed, when I go on [1], I see that the last stable version is gtkmm-3.10 
whereas on your link [2], the last stable version seems to be gtkmm-3.14.0.
I guess that [1] is not always up to date, but tell me if I misunderstand.

[1] http://www.gtkmm.org/en/download.html
[2] http://ftp.gnome.org/pub/GNOME/sources/gtkmm/
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to