[Telepathy] Request for "Hello World" program for XMPP-Link-Local

Ajay Garg ajaygargnsit at gmail.com
Mon May 7 04:08:57 PDT 2012


Hi Danielle.

I am trying the example given at your link.
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.

Following is my terminal dump ::

###################################################################################################################
[ajay at 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
/tmp/ccChAOII.o: In function `shorten_account_name':
example.c:(.text+0xd): undefined reference to `tp_proxy_get_object_path'
/tmp/ccChAOII.o: In function `_contact_presence_changed':
example.c:(.text+0x24): undefined reference to `tp_contact_get_alias'
example.c:(.text+0x4b): undefined reference to `g_log'
example.c:(.text+0x5e): undefined reference to `g_type_check_instance_cast'
example.c:(.text+0x6e): undefined reference to `g_object_get_data'
example.c:(.text+0xb6): undefined reference to `tp_contact_get_alias'
example.c:(.text+0xd6): undefined reference to `g_log'
example.c:(.text+0xff): undefined reference to `tp_contact_get_alias'
example.c:(.text+0x11f): undefined reference to `g_log'
example.c:(.text+0x12c): undefined reference to `tp_contact_get_alias'
example.c:(.text+0x14c): undefined reference to `g_log'
/tmp/ccChAOII.o: In function `_got_contacts':
example.c:(.text+0x18e): undefined reference to `g_log'
example.c:(.text+0x1b6): undefined reference to `g_log'
example.c:(.text+0x1d5): undefined reference to `tp_account_get_type'
example.c:(.text+0x1e4): undefined reference to `g_type_check_instance_cast'
example.c:(.text+0x1f1): undefined reference to
`tp_contact_get_presence_message'
example.c:(.text+0x1fe): undefined reference to
`tp_contact_get_presence_status'
example.c:(.text+0x20b): undefined reference to
`tp_contact_get_presence_type'
example.c:(.text+0x259): undefined reference to `g_signal_connect_data'
/tmp/ccChAOII.o: In function `_got_connection':
example.c:(.text+0x2bd): undefined reference to `g_key_file_has_key'
example.c:(.text+0x2f5): undefined reference to `g_key_file_get_string_list'
example.c:(.text+0x325): undefined reference to `g_log'
example.c:(.text+0x33a): undefined reference to `g_type_check_instance_cast'
example.c:(.text+0x380): undefined reference to
`tp_connection_get_contacts_by_id'
example.c:(.text+0x38b): undefined reference to `g_strfreev'
/tmp/ccChAOII.o: In function `main':
example.c:(.text+0x3a6): undefined reference to `g_type_init'
example.c:(.text+0x3ab): undefined reference to `g_key_file_new'
example.c:(.text+0x3d7): undefined reference to `g_key_file_load_from_file'
example.c:(.text+0x402): undefined reference to `g_log'
example.c:(.text+0x409): undefined reference to `connections_monitor_new'
example.c:(.text+0x442): undefined reference to `g_signal_connect_data'
example.c:(.text+0x456): undefined reference to `g_main_loop_new'
example.c:(.text+0x466): undefined reference to `g_main_loop_run'
example.c:(.text+0x472): undefined reference to `g_main_loop_unref'
example.c:(.text+0x47e): undefined reference to `g_object_unref'
example.c:(.text+0x48a): undefined reference to `g_key_file_free'
collect2: ld returned 1 exit status
#############################################################################################################

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).

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) :) ?


Regards,
Ajay


On Mon, Apr 2, 2012 at 4:44 AM, Danielle Madeley <
danielle.madeley at collabora.co.uk> wrote:

> Have a look at one of the presence examples in
> http://cgit.freedesktop.org/telepathy/telepathy-doc/tree/docs/examples
> perhaps glib_mc5_presence_app.
>
> On Sun, 2012-04-01 at 11:28 +0530, Ajay Garg wrote:
> > David,
> >
> > I am wanting to write a simplest of feature, wherein any newly
> > connected user to a network (say a WIFI network), is able to announce
> > her arrival to other users on the same (WIFI) network.
> >
> > I will be grateful, if I just get to know a very broad level of steps
> > required to do this; the coding-cum-implementation research will be
> > easily handled then by myself :)
> >
> >
> > Thanks and Regards,
> > Ajay
> >
> > On Fri, Mar 30, 2012 at 7:29 PM, Ajay Garg <ajaygargnsit at gmail.com>
> wrote:
> > > Thanks Dave for the reply.
> > >
> > > I am grateful; and I am sorry for sounding stupid.
> > >
> > > Thanks and Regards,
> > > Ajay
> > >
> > >
> > > On Fri, Mar 30, 2012 at 7:22 PM, David Edmundson
> > > <david at davidedmundson.co.uk> wrote:
> > >>
> > >> Telepathy is an abstraction layer on top of all the protocols, if you
> > >> use telepathy as a client all the "xmpp-link-local" is abstracted away
> > >> from you. You don't need to write your own link-local client or
> > >> server. Your question doesn't make a lot of sense.
> > >>
> > >> The best place for sample code is the "examples" directory of
> > >> telepathy-glib, telepathy-qt depending on what toolkit you want to
> > >> use, but you also need to read some of the links on
> > >> http://telepathy.freedesktop.org/wiki/ I would recommend looking at
> > >> some of the presentations there to get an overview of the
> > >> architecture.
> > >>
> > >> Dave
> > >
> > >
> > _______________________________________________
> > telepathy mailing list
> > telepathy at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/telepathy
>
> --
> Danielle Madeley
> Senior Software Engineer, Collabora Ltd.
>
> www.collabora.co.uk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/telepathy/attachments/20120507/1cb9bf2e/attachment.htm>


More information about the telepathy mailing list