Re: Gdk::RGBA



Kjell, thank you very much for the explanations.

Actually, in vanilla tarball gtkspell-3.0 is used. When I try to compile
it in Ubuntu oneiric (11.10), it fails complaining that gtkspell-3.0
could not be found
( https://launchpadlibrarian.net/110202120/buildlog_ubuntu-oneiric-amd64.lifeograph_0.9.0-1~ppa4~oneiric_FAILEDTOBUILD.txt.gz ). That's why I tried my luck with with gtkspell-2.0. (Although there is a package with an uncanny name in the repos ( http://packages.ubuntu.com/oneiric/libgtkspell3-0 ), obviously it cannot be used by saying "pkg-config gtkspell-3.0".)

OTOH, I tried to mix gtkmm-3.4 with gtkspell-2.0 and strangely enough
managed to build a binary without getting any warning although the
resulting binary could not be executed for the very reason you
mentioned. This level of "success" with gtkmm-3.4 makes me doubt that
gtkspell-2.0 is the cause behind RGBA errors.

Regards


On Paz, 2012-07-15 at 19:50 +0200, Kjell Ahlstedt wrote:
> I could not reproduce the error, because I haven't got everything 
> installed that's necessary.
> 
> But I've found the probable root of the problem in the FAILEDTOBUILD.txt 
> file. The command for compiling dialog_export.cpp is
> 
> g++ -c src/dialog_export.cpp -Wall `pkg-config gtkmm-3.0 gtkspell-2.0 
> --cflags`-DHAVE_CONFIG_H -I./build/include -O2 -o build/o/dialog_export.o
> 
> I haven't got gtkspell-2.0 installed, but I can see at
> http://git.gnome.org/browse/jhbuild/tree/modulesets/gnome-world-3.2.modules
> that gtkspell version 2.0.16 depends on gtk+-2.
> This means that `pkg-config gtkmm-3.0 gtkspell-2.0 --cflags` will add 
> include options for both gtk+-2 and gtk+- 3, since gtkmm-3.0 depends on 
> gtk+-3. That will make a mess of the header file inclusions. It's not 
> possible to combine gtk+-2 and gtk+-3 (or for that matter gtkmm-2.x and 
> gtkmm-3.0) in the same compilation or linking.
> 
> Probably the #include <gdk/gdk.h> directive in gtkmm/rgba.h has included 
> the gdk/gdk.h from gtk+-2, which does not include gdk/gdkrgba.h.
> 
> error: ‘class Gtk::TextTag’ has no member named ‘property_foreground_rgba’
> indicates that the preprocessor macro GLIBMM_PROPERTIES_ENABLED is not 
> defined. I don't know if this is also a result of mixing incompatible 
> code. Anyway that mix must be "unmixed" before it's meaningful to search 
> for other causes of errors.
> 
> Regards
> Kjell
> 
> 2012-07-15 11:24, ahmet öztürk skrev:
> > I haven't got a gtkmm 3.2 installation. I got those errors through
> > launchpad build service:
> > https://launchpadlibrarian.net/109778043/buildlog_ubuntu-oneiric-i386.lifeograph_0.9.0-1~ppa2~oneiric_FAILEDTOBUILD.txt.gz  and user questions: https://answers.launchpad.net/lifeograph/+question/201044
> >
> > Source code of the file that launchpad build log error refers to is
> > here:
> > http://bazaar.launchpad.net/~dmxe/lifeograph/trunk/view/head:/src/dialog_export.cpp
> >
> > However, there is no reference to RGBA in that very module which is
> > strange.
> >
> >
> > On Cts, 2012-07-14 at 22:01 +0200, Kjell Ahlstedt wrote:
> >> Gdk::RGBA was added in gtkmm 3.0. It's available in all 3.x versions.
> >>
> >> I don't understand why you get those errors. Can you show a complete
> >> (preferably short) source code file that gives such errors when compiled?
> >>
> >> Kjell
> >>
> >> 2012-07-14 10:10, ahmet öztürk skrev:
> >>> Hi everybody,
> >>>
> >>> Although there is no hint about it neither on related reference page[1]
> >>> nor new API list[2], I suspect that Gdk::RGBA was added to gtkmm in 3.4.
> >>> Because, when we try to build code with RGBA against gtkmm 3.2, we get
> >>> errors such as following:
> >>>
> >>> error: return type 'Gdk::RGBATraits::CType {aka struct _GdkRGBA}' is
> >>> incomplete
> >>>
> >>> error: ‘class Gtk::TextTag’ has no member named
> >>> ‘property_foreground_rgba’
> >>>
> >>> etc...
> >>>
> >>> Could someone please clarify?
> >>>
> >>> Kind regards,
> >>>
> >>> Ahmet
> >>>
> >>> [1] http://developer.gnome.org/gtkmm/stable/classGdk_1_1RGBA.html
> >>> [2] http://developer.gnome.org/gtkmm/stable/since_3_4.html
> >>>
> >>
> >
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]