Hello,<br><br>Sorry. I forgot to include gtkCallback in my mail.<br><br>Actually, Gio/gfile doesn't seems to be corrupted. (It was proved, with a previous version of our program working perfectly)<br><br>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).<br>
<br>So, actually, like we said in France our program seems to be "Tomber en marche" (opposite of "Tomber en panne"/breaking down)<br><br>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.<br>
<br><span style="color: rgb(153, 0, 0);">This is after I</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);">
defined -DUSE_GTK_GUI).</span><br><br>Is it how we could define specific #define in an environment ? I will add it, I was searching this one :)<br><br>Thanks a lot !<br><br><br><div class="gmail_quote">On Tue, Jan 13, 2009 at 8:26 PM, <span dir="ltr"><<a href="mailto:philip@yhbt.com">philip@yhbt.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">> Hello,<br>
><br>
> I'm currently working with GTK 2.0, CMake and FindGTK2.cmake (from Philip<br>
> Lowman).<br>
><br>
> After some works on my system (ubuntu 8.04), we are currently trying to<br>
> merge our change on another plateform, with Ubuntu 8.10.<br>
><br>
> But, we encountered the following error during compilation :<br>
><br>
> [ 60%] Building C object CMakeFiles/SipSec.dir/main.c.o<br>
>> In file included from /usr/include/glib-2.0/gio/gio.h:40,<br>
>> from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,<br>
>> from /usr/include/gtk-2.0/gdk/gdk.h:32,<br>
>> from /usr/include/gtk-2.0/gtk/gtk.h:32,<br>
>> from /home/kick/workspace/SipSec_unified/widgetUI.h:11,<br>
>> from /home/kick/workspace/SipSec_unified/main.c:15:<br>
>> /usr/include/glib-2.0/gio/gfile.h:333: error: syntax error before string<br>
>> constant<br>
>> /usr/include/glib-2.0/gio/gfile.h:333: warning: no semicolon at end of<br>
>> struct or union<br>
>> /usr/include/glib-2.0/gio/gfile.h:434: error: syntax error before '}'<br>
>> token<br>
>> make[2]: *** [CMakeFiles/SipSec.dir/main.c.o] Error 1<br>
>> make[1]: *** [CMakeFiles/SipSec.dir/all] Error 2<br>
>> make: *** [all] Error 2<br>
<br>
</div>I don't get this error on my system. Instead compilation works all the<br>
way through the error below (missing header file). This is after I<br>
defined -DUSE_GTK_GUI).<br>
<br>
[100%] Building C object CMakeFiles/pat.dir/main.c.o<br>
In file included from /home/lowmanp/svn/devel/gtkmm_play/trunk/main.c:5:<br>
/home/lowmanp/svn/devel/gtkmm_play/trunk/widgetUI.h:5:25: error:<br>
gtkCallback.h: No such file or directory<br>
make[2]: *** [CMakeFiles/pat.dir/main.c.o] Error 1<br>
make[1]: *** [CMakeFiles/pat.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
I suspect there is something wrong with your<br>
/usr/include/glib-2.0/gio/gfile.h. Attached is my gfile.h from an Ubuntu<br>
8.10 system along with the md5sum. Can you confirm yours isn't corrupted<br>
by diffing them?<br>
<br>
MD5SUM 13952220e44c5732e7b1b5b5d9316988 /usr/include/glib-2.0/gio/gfile.h<br>
</blockquote></div><br><br clear="all"><br>-- <br>Pierrick Grasland<br><br>