[Galago-devel] libnotify examples

Christian Hammond chipx86 at chipx86.com
Mon Jun 28 11:59:45 PDT 2010


These come from gtk and glib, which are needed. If your project is using
pkg-config (which it should be) and you have libnotify as a dependency, it
will automatically pull in all the libraries you need.

Christian

-- 
Christian Hammond - chipx86 at chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Mon, Jun 28, 2010 at 10:34 AM, Ankur Sinha <sanjay.ankur at gmail.com>wrote:

> 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
>
> _______________________________________________
> galago-devel mailing list
> galago-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/galago-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/galago-devel/attachments/20100628/360001f2/attachment.html>


More information about the galago-devel mailing list