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 <[email protected]> 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 < > [email protected]> 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 >> > <[email protected]> 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 [email protected] http://lists.freedesktop.org/mailman/listinfo/telepathy
