Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
Ping.. :-) Regards, Ajay On Thu, Mar 29, 2012 at 10:16 PM, Ajay Garg wrote: > Hi all. > > I am a newbie to telepathy, and am really interested by the use-cases it > has to offer. > I have worked in DBUS before (on NetworkManager APIs). > > However, I have failed to find any startup "Hello World" programs for > telepathy. > > I will be highly grateful if someone could please point me to the links > for writing a "Hello World" Client for XMPP-Link-Local; and the > corresponding "Hello World" Server for XMPP-Link-Local (if at all there is > a distinction between client and server here :-) ) > More specifically, I wish to have "machine 1" notified of coming online of > "machine 2" on the same network; and vice versa. > > > Looking forward to a reply. > > > Thanks and Regards, > Ajay > > ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
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@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
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 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@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
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 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 > 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@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
More specifically, I am looking for a howto on "telepathy-salut - link-local XMPP connection manager." Regards, Ajay On Sun, Apr 1, 2012 at 11:28 AM, 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 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 >> 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@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
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 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 > > 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@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/telepathy -- Danielle Madeley Senior Software Engineer, Collabora Ltd. www.collabora.co.uk ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
Hi, On Thu, Mar 29, 2012 at 6:46 PM, Ajay Garg wrote: > I wish to have "machine 1" notified of coming online of > "machine 2" on the same network; and vice versa. If this is the only thing you need to do, maybe telepathy is not the right tool. I would use avahi for such a use case. machine2 would publish a dummy service and machine1 would poll for this service: ~machine1 $ avahi-browse -r _foo._tcp ~machine2 $ avahi-publish-service foo _foo._tcp 8080 You can feed some script on machine1 with the output of avahi-browse to trigger some action when machine2 comes online. You can also configure machine2 so that it permanently advertises for the foo service by adding stuff in /etc/avahi/services I hope that helps. -- Christophe-Marie ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
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@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.made...@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 > 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 > > > 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 s
Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
On Mon, 2012-05-07 at 16:38 +0530, Ajay Garg wrote: > 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. Try: gcc -o blah `pkg-config --cflags --libs telepathy-glib` blah.c Note backticks ` not single quotes. -- Danielle Madeley Senior Software Engineer, Collabora Ltd. www.collabora.co.uk ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
Thanks Danielle. Almost there :) I forgot to specify the exact link http://cgit.freedesktop.org/telepathy/telepathy-doc/tree/docs/examples/glib_mc5_presence_app Compiling "example.c" requires object for "connections-monitor.c" first. So, using your technique on "connections-monitor.c", I get the following dump :: # [ajay@localhost telepathy]$ gcc -o connections-monitor `pkg-config --cflags --libs telepathy-glib` connections-monitor.c connections-monitor.c:4:25: fatal error: marshallers.h: No such file or directory compilation terminated. # However, there isn't any "marshallers.h" at the link, nor is it immediately apparent as to what (package) may contain this. Any quick help in this regard ;-) ? Thanks and Regards, Ajay On Mon, May 7, 2012 at 4:42 PM, Danielle Madeley < danielle.made...@collabora.co.uk> wrote: > On Mon, 2012-05-07 at 16:38 +0530, Ajay Garg wrote: > > 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. > > Try: gcc -o blah `pkg-config --cflags --libs telepathy-glib` blah.c > > Note backticks ` not single quotes. > > -- > Danielle Madeley > Senior Software Engineer, Collabora Ltd. > > www.collabora.co.uk > > ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
On Mon, 2012-05-07 at 16:50 +0530, Ajay Garg wrote: > I forgot to specify the exact link > http://cgit.freedesktop.org/telepathy/telepathy-doc/tree/docs/examples/glib_mc5_presence_app > > Compiling "example.c" requires object for "connections-monitor.c" > first. > So, using your technique on "connections-monitor.c", I get the > following dump :: The marshallers file is generated by glib-genmarshals. Have a look at the Makefile. Alternatively in new glib, all marshallers can be replaced by g_cclosure_marshal_generic(), no need to generate marshaller stubs. > > # > [ajay@localhost telepathy]$ gcc -o connections-monitor `pkg-config > --cflags --libs telepathy-glib` connections-monitor.c > connections-monitor.c:4:25: fatal error: marshallers.h: No such file > or directory > compilation terminated. > # > > > > However, there isn't any "marshallers.h" at the link, nor is it > immediately apparent as to what (package) may contain this. > > Any quick help in this regard ;-) ? > > > Thanks and Regards, > Ajay > > > On Mon, May 7, 2012 at 4:42 PM, Danielle Madeley > wrote: > On Mon, 2012-05-07 at 16:38 +0530, Ajay Garg wrote: > > 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. > > > Try: gcc -o blah `pkg-config --cflags --libs telepathy-glib` > blah.c > > Note backticks ` not single quotes. > > -- > Danielle Madeley > Senior Software Engineer, Collabora Ltd. > > www.collabora.co.uk > > > -- Danielle Madeley Senior Software Engineer, Collabora Ltd. www.collabora.co.uk ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
Danielle, I think I managed to generate "marshallers.c" and "marshallers.h" ok. However, I am now stuck at third stage. Complete terminal-dump :: ### [ajay@localhost telepathy]$ glib-genmarshal --header --prefix=_example marshallers.list > marshallers.h [ajay@localhost telepathy]$ glib-genmarshal --body --prefix=_example marshallers.list > marshallers.c [ajay@localhost telepathy]$ gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include marshallers.c -o marshallers.o /usr/lib/gcc/i686-redhat-linux/4.5.1/../../../crt1.o: In function `_start': (.text+0x18): undefined reference to `main' /tmp/ccqLxwb8.o: In function `_example_VOID__OBJECT_OBJECT': marshallers.c:(.text+0x2a): undefined reference to `g_return_if_fail_warning' marshallers.c:(.text+0x4b): undefined reference to `g_value_peek_pointer' marshallers.c:(.text+0x5a): undefined reference to `g_value_peek_pointer' collect2: ld returned 1 exit status ### Ideas? Regards, Ajay On Mon, May 7, 2012 at 4:52 PM, Danielle Madeley < danielle.made...@collabora.co.uk> wrote: > On Mon, 2012-05-07 at 16:50 +0530, Ajay Garg wrote: > > > I forgot to specify the exact link > > > http://cgit.freedesktop.org/telepathy/telepathy-doc/tree/docs/examples/glib_mc5_presence_app > > > > Compiling "example.c" requires object for "connections-monitor.c" > > first. > > So, using your technique on "connections-monitor.c", I get the > > following dump :: > > The marshallers file is generated by glib-genmarshals. Have a look at > the Makefile. Alternatively in new glib, all marshallers can be replaced > by g_cclosure_marshal_generic(), no need to generate marshaller stubs. > > > > > > # > > [ajay@localhost telepathy]$ gcc -o connections-monitor `pkg-config > > --cflags --libs telepathy-glib` connections-monitor.c > > connections-monitor.c:4:25: fatal error: marshallers.h: No such file > > or directory > > compilation terminated. > > > # > > > > > > > > However, there isn't any "marshallers.h" at the link, nor is it > > immediately apparent as to what (package) may contain this. > > > > Any quick help in this regard ;-) ? > > > > > > Thanks and Regards, > > Ajay > > > > > > On Mon, May 7, 2012 at 4:42 PM, Danielle Madeley > > wrote: > > On Mon, 2012-05-07 at 16:38 +0530, Ajay Garg wrote: > > > 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. > > > > > > Try: gcc -o blah `pkg-config --cflags --libs telepathy-glib` > > blah.c > > > > Note backticks ` not single quotes. > > > > -- > > Danielle Madeley > > Senior Software Engineer, Collabora Ltd. > > > > www.collabora.co.uk > > > > > > > > -- > Danielle Madeley > Senior Software Engineer, Collabora Ltd. > > www.collabora.co.uk > > ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
Ping :) Danielle, just wanted to let you know that I have managed to run a telepathy-salut "Hello World" program (discovering buddies coming-online/going-offline), using Python-Binding. I just need to try it using native C bindings, as C is supposedly the fastest system-programming language. Sorry to bother you, but I am still stuck at the third stage (using C binding). Regards, Ajay On Mon, May 7, 2012 at 5:57 PM, Ajay Garg wrote: > Danielle, > > I think I managed to generate "marshallers.c" and "marshallers.h" ok. > However, I am now stuck at third stage. > > Complete terminal-dump :: > > > ### > [ajay@localhost telepathy]$ glib-genmarshal --header --prefix=_example > marshallers.list > marshallers.h > > [ajay@localhost telepathy]$ glib-genmarshal --body --prefix=_example > marshallers.list > marshallers.c > > [ajay@localhost telepathy]$ gcc -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include marshallers.c -o marshallers.o > /usr/lib/gcc/i686-redhat-linux/4.5.1/../../../crt1.o: In function `_start': > (.text+0x18): undefined reference to `main' > /tmp/ccqLxwb8.o: In function `_example_VOID__OBJECT_OBJECT': > marshallers.c:(.text+0x2a): undefined reference to > `g_return_if_fail_warning' > marshallers.c:(.text+0x4b): undefined reference to `g_value_peek_pointer' > marshallers.c:(.text+0x5a): undefined reference to `g_value_peek_pointer' > > collect2: ld returned 1 exit status > > ### > > > Ideas? > > > Regards, > Ajay > > > On Mon, May 7, 2012 at 4:52 PM, Danielle Madeley < > danielle.made...@collabora.co.uk> wrote: > >> On Mon, 2012-05-07 at 16:50 +0530, Ajay Garg wrote: >> >> > I forgot to specify the exact link >> > >> http://cgit.freedesktop.org/telepathy/telepathy-doc/tree/docs/examples/glib_mc5_presence_app >> > >> > Compiling "example.c" requires object for "connections-monitor.c" >> > first. >> > So, using your technique on "connections-monitor.c", I get the >> > following dump :: >> >> The marshallers file is generated by glib-genmarshals. Have a look at >> the Makefile. Alternatively in new glib, all marshallers can be replaced >> by g_cclosure_marshal_generic(), no need to generate marshaller stubs. >> >> > >> > >> # >> > [ajay@localhost telepathy]$ gcc -o connections-monitor `pkg-config >> > --cflags --libs telepathy-glib` connections-monitor.c >> > connections-monitor.c:4:25: fatal error: marshallers.h: No such file >> > or directory >> > compilation terminated. >> > >> # >> > >> > >> > >> > However, there isn't any "marshallers.h" at the link, nor is it >> > immediately apparent as to what (package) may contain this. >> > >> > Any quick help in this regard ;-) ? >> > >> > >> > Thanks and Regards, >> > Ajay >> > >> > >> > On Mon, May 7, 2012 at 4:42 PM, Danielle Madeley >> > wrote: >> > On Mon, 2012-05-07 at 16:38 +0530, Ajay Garg wrote: >> > > 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. >> > >> > >> > Try: gcc -o blah `pkg-config --cflags --libs telepathy-glib` >> > blah.c >> > >> > Note backticks ` not single quotes. >> > >> > -- >> > Danielle Madeley >> > Senior Software Engineer, Collabora Ltd. >> > >> > www.collabora.co.uk >> > >> > >> > >> >> -- >> Danielle Madeley >> Senior Software Engineer, Collabora Ltd. >> >> www.collabora.co.uk >> >> > ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] Request for "Hello World" program for XMPP-Link-Local
On Tue, 2012-05-22 at 23:31 +0530, Ajay Garg wrote: > I just need to try it using native C bindings, as C is supposedly the > fastest system-programming language. Just to be clear about any misconceptions, this is a D-Bus library that talks to the network. You're not ever going to be CPU bound, your program will spend approximately all of its time waiting for IO, writing in C is going to gain you no appreciable difference, unless perhaps you're on an embedded device. > Sorry to bother you, but I am still stuck at the third stage (using C > binding). You already know the answer to this problem. > > 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. > > Try: gcc -o blah `pkg-config --cflags --libs telepathy-glib` blah.c blah2.c > > Note backticks ` not single quotes. You can also pass -c to the compiler to delay linking. e.g. the way Makefile.am would do this is: gcc `pkg-config --cflags telepathy-glib` -c file1.c gcc `pkg-config --cflags telepathy-glib` -c file2.c gcc `pkg-config --libs telepathy-glib` -o test file1.o file2.o -- Danielle Madeley Senior Software Engineer, Collabora Ltd. www.collabora.co.uk ___ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy