[Galago-devel] libnotify examples

Ankur Sinha sanjay.ankur at gmail.com
Mon Jun 28 10:34:45 PDT 2010


On Mon, 2010-06-28 at 18:11 +0200, Holger Berndt wrote:
> On Mon, 28 Jun 2010 21:36:41 +0530 Ankur Sinha wrote:
> 
> > I am trying to make use of the libnotify C API in an app. Are there a
> > bunch of examples I can refer to somewhere?
> 
> There are a bunch of test programs that come with libnotify. See
> http://git.gnome.org/browse/libnotify/tree/tests
> (test-basic.c is probably a good start).
> 
> Holger
> _______________________________________________

hey,

What are the minimum required cflag and libs to build just test-basic.c?

I blindly used (apart from -lnotify):

[Ankur at localhost libnotify]$ pkg-config --cflags --libs gtk+-2.0
-pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
-pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
-lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype
-lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0  

Are all of these required? (I haven't used any threads etc. at all)

Thanks again.

regards,
Ankur



More information about the galago-devel mailing list