[CMake] GTK doesn't seem to be include correctly on Ubuntu 8.10

Pierrick Grasland pierrick.grasland at gmail.com
Tue Jan 13 14:57:34 EST 2009


Hello,

Sorry. I forgot to include gtkCallback in my mail.

Actually, Gio/gfile doesn't seems to be corrupted. (It was proved, with a
previous version of our program working perfectly)

We nailed down a problem : an header, protected with #define, was include
several times, but generate this error (I wasn't able to define why, because
it doesn't include gtk).

So, actually, like we said in France our program seems to be "Tomber en
marche" (opposite of "Tomber en panne"/breaking down)

I'm trying to find out why he is doing this, but with as new afternoon on
this bug, I don't think our errors are from our CMake configurations.

This is after I
defined -DUSE_GTK_GUI).

Is it how we could define specific #define in an environment ? I will add
it, I was searching this one :)

Thanks a lot !


On Tue, Jan 13, 2009 at 8:26 PM, <philip at yhbt.com> wrote:

> > Hello,
> >
> > I'm currently working with GTK 2.0, CMake and FindGTK2.cmake (from Philip
> > Lowman).
> >
> > After some works on my system (ubuntu 8.04), we are currently trying to
> > merge our change on another plateform, with Ubuntu 8.10.
> >
> > But, we encountered the following error during compilation :
> >
> > [ 60%] Building C object CMakeFiles/SipSec.dir/main.c.o
> >> In file included from /usr/include/glib-2.0/gio/gio.h:40,
> >>                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
> >>                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
> >>                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
> >>                 from /home/kick/workspace/SipSec_unified/widgetUI.h:11,
> >>                 from /home/kick/workspace/SipSec_unified/main.c:15:
> >> /usr/include/glib-2.0/gio/gfile.h:333: error: syntax error before string
> >> constant
> >> /usr/include/glib-2.0/gio/gfile.h:333: warning: no semicolon at end of
> >> struct or union
> >> /usr/include/glib-2.0/gio/gfile.h:434: error: syntax error before '}'
> >> token
> >> make[2]: *** [CMakeFiles/SipSec.dir/main.c.o] Error 1
> >> make[1]: *** [CMakeFiles/SipSec.dir/all] Error 2
> >> make: *** [all] Error 2
>
> I don't get this error on my system.  Instead compilation works all the
> way through the error below (missing header file).  This is after I
> defined -DUSE_GTK_GUI).
>
> [100%] Building C object CMakeFiles/pat.dir/main.c.o
> In file included from /home/lowmanp/svn/devel/gtkmm_play/trunk/main.c:5:
> /home/lowmanp/svn/devel/gtkmm_play/trunk/widgetUI.h:5:25: error:
> gtkCallback.h: No such file or directory
> make[2]: *** [CMakeFiles/pat.dir/main.c.o] Error 1
> make[1]: *** [CMakeFiles/pat.dir/all] Error 2
> make: *** [all] Error 2
>
> I suspect there is something wrong with your
> /usr/include/glib-2.0/gio/gfile.h.  Attached is my gfile.h from an Ubuntu
> 8.10 system along with the md5sum.  Can you confirm yours isn't corrupted
> by diffing them?
>
> MD5SUM 13952220e44c5732e7b1b5b5d9316988  /usr/include/glib-2.0/gio/gfile.h
>



-- 
Pierrick Grasland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090113/071e5e0c/attachment.htm>


More information about the CMake mailing list