Hi Danielle.<br><br>I am trying the example given at your link.<br>I have been able to get the "includes" done, however, I don't know how to figure out the libraries that need to be linked.<br><br>Following is my terminal dump ::<br>
<br>###################################################################################################################<br>[ajay@localhost telepathy]$ gcc -I/usr/include/telepathy-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 example.c <br>
/tmp/ccChAOII.o: In function `shorten_account_name':<br>example.c:(.text+0xd): undefined reference to `tp_proxy_get_object_path'<br>/tmp/ccChAOII.o: In function `_contact_presence_changed':<br>example.c:(.text+0x24): undefined reference to `tp_contact_get_alias'<br>
example.c:(.text+0x4b): undefined reference to `g_log'<br>example.c:(.text+0x5e): undefined reference to `g_type_check_instance_cast'<br>example.c:(.text+0x6e): undefined reference to `g_object_get_data'<br>example.c:(.text+0xb6): undefined reference to `tp_contact_get_alias'<br>
example.c:(.text+0xd6): undefined reference to `g_log'<br>example.c:(.text+0xff): undefined reference to `tp_contact_get_alias'<br>example.c:(.text+0x11f): undefined reference to `g_log'<br>example.c:(.text+0x12c): undefined reference to `tp_contact_get_alias'<br>
example.c:(.text+0x14c): undefined reference to `g_log'<br>/tmp/ccChAOII.o: In function `_got_contacts':<br>example.c:(.text+0x18e): undefined reference to `g_log'<br>example.c:(.text+0x1b6): undefined reference to `g_log'<br>
example.c:(.text+0x1d5): undefined reference to `tp_account_get_type'<br>example.c:(.text+0x1e4): undefined reference to `g_type_check_instance_cast'<br>example.c:(.text+0x1f1): undefined reference to `tp_contact_get_presence_message'<br>
example.c:(.text+0x1fe): undefined reference to `tp_contact_get_presence_status'<br>example.c:(.text+0x20b): undefined reference to `tp_contact_get_presence_type'<br>example.c:(.text+0x259): undefined reference to `g_signal_connect_data'<br>
/tmp/ccChAOII.o: In function `_got_connection':<br>example.c:(.text+0x2bd): undefined reference to `g_key_file_has_key'<br>example.c:(.text+0x2f5): undefined reference to `g_key_file_get_string_list'<br>example.c:(.text+0x325): undefined reference to `g_log'<br>
example.c:(.text+0x33a): undefined reference to `g_type_check_instance_cast'<br>example.c:(.text+0x380): undefined reference to `tp_connection_get_contacts_by_id'<br>example.c:(.text+0x38b): undefined reference to `g_strfreev'<br>
/tmp/ccChAOII.o: In function `main':<br>example.c:(.text+0x3a6): undefined reference to `g_type_init'<br>example.c:(.text+0x3ab): undefined reference to `g_key_file_new'<br>example.c:(.text+0x3d7): undefined reference to `g_key_file_load_from_file'<br>
example.c:(.text+0x402): undefined reference to `g_log'<br>example.c:(.text+0x409): undefined reference to `connections_monitor_new'<br>example.c:(.text+0x442): undefined reference to `g_signal_connect_data'<br>
example.c:(.text+0x456): undefined reference to `g_main_loop_new'<br>example.c:(.text+0x466): undefined reference to `g_main_loop_run'<br>example.c:(.text+0x472): undefined reference to `g_main_loop_unref'<br>
example.c:(.text+0x47e): undefined reference to `g_object_unref'<br>example.c:(.text+0x48a): undefined reference to `g_key_file_free'<br>collect2: ld returned 1 exit status<br>#############################################################################################################<br>
<br>I notice one thing, that there are only "Makefile.am" present, no "configure" script that could convert "Makefile.am" into "Makefile" (as is the customary practice in open-source unix world).<br>
<br>So, how could I build this, and have it working, so that I may finally delve into the awesome world of telepathy ("salut" in particular, intriques me) :) ?<br><br><br>Regards,<br>Ajay<br><br><br><div class="gmail_quote">
On Mon, Apr 2, 2012 at 4:44 AM, Danielle Madeley <span dir="ltr"><<a href="mailto:danielle.madeley@collabora.co.uk" target="_blank">danielle.madeley@collabora.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Have a look at one of the presence examples in<br>
<a href="http://cgit.freedesktop.org/telepathy/telepathy-doc/tree/docs/examples" target="_blank">http://cgit.freedesktop.org/telepathy/telepathy-doc/tree/docs/examples</a><br>
perhaps glib_mc5_presence_app.<br>
<div><div class="h5"><br>
On Sun, 2012-04-01 at 11:28 +0530, Ajay Garg wrote:<br>
> David,<br>
><br>
> I am wanting to write a simplest of feature, wherein any newly<br>
> connected user to a network (say a WIFI network), is able to announce<br>
> her arrival to other users on the same (WIFI) network.<br>
><br>
> I will be grateful, if I just get to know a very broad level of steps<br>
> required to do this; the coding-cum-implementation research will be<br>
> easily handled then by myself :)<br>
><br>
><br>
> Thanks and Regards,<br>
> Ajay<br>
><br>
> On Fri, Mar 30, 2012 at 7:29 PM, Ajay Garg <<a href="mailto:ajaygargnsit@gmail.com">ajaygargnsit@gmail.com</a>> wrote:<br>
> > Thanks Dave for the reply.<br>
> ><br>
> > I am grateful; and I am sorry for sounding stupid.<br>
> ><br>
> > Thanks and Regards,<br>
> > Ajay<br>
> ><br>
> ><br>
> > On Fri, Mar 30, 2012 at 7:22 PM, David Edmundson<br>
> > <<a href="mailto:david@davidedmundson.co.uk">david@davidedmundson.co.uk</a>> wrote:<br>
> >><br>
> >> Telepathy is an abstraction layer on top of all the protocols, if you<br>
> >> use telepathy as a client all the "xmpp-link-local" is abstracted away<br>
> >> from you. You don't need to write your own link-local client or<br>
> >> server. Your question doesn't make a lot of sense.<br>
> >><br>
> >> The best place for sample code is the "examples" directory of<br>
> >> telepathy-glib, telepathy-qt depending on what toolkit you want to<br>
> >> use, but you also need to read some of the links on<br>
> >> <a href="http://telepathy.freedesktop.org/wiki/" target="_blank">http://telepathy.freedesktop.org/wiki/</a> I would recommend looking at<br>
> >> some of the presentations there to get an overview of the<br>
> >> architecture.<br>
> >><br>
> >> Dave<br>
> ><br>
> ><br>
</div></div>> _______________________________________________<br>
> telepathy mailing list<br>
> <a href="mailto:telepathy@lists.freedesktop.org">telepathy@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/telepathy" target="_blank">http://lists.freedesktop.org/mailman/listinfo/telepathy</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Danielle Madeley<br>
Senior Software Engineer, Collabora Ltd.<br>
<br>
<a href="http://www.collabora.co.uk" target="_blank">www.collabora.co.uk</a><br>
<br>
</font></span></blockquote></div><br>