Re: [gnome-love] Linking with gdk-pixbuf



On Sat, 2002-01-26 at 11:58, Heeten H. Choxi wrote:

I'm having a little trouble learning how autoconf works.  How do I get a
project I made in glade to link with gdk-pixbuf?

Add something like the following to your configure.in:

        AM_PATH_GDK_PIXBUF(0.9.0, ,AC_MSG_ERROR([Need gdk-pixbuf-0.9.0 or later!]))

        EXTRA_CFLAGS=`gnome-config --cflags gdk_pixbuf`
        EXTRA_LIBS=`gnome-config --ldflags gdk_pixbuf`
        AC_SUBST(EXTRA_CFLAGS)
        AC_SUBST(EXTRA_LIBS)

And then use the $(EXTRA_CFLAGS) and $(EXTRA_LIBS) in your Makefile.am.

Good luck,

  Federico



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]