[Glade-users] Set make up to compile with libxml

Søren Juul zpon.dk at gmail.com
Sun Oct 29 13:02:01 EST 2006


Thanks, that worked.
I just changed
pkg_modules="gtk+-2.0 >= 2.0.0"
to
pkg_modules="gtk+-2.0 >= 2.0.0 libxml-2.0 >= 2.4.0"
in configure.in

2006/10/28, Tristan Van Berkom <tvb at gnome.org>:
>
> Søren Juul wrote:
>
> > How do I set up a project to using libxml when it is being compiled? I
> > suppose it is somewhere in configure or Makefile?
> >
> Sure, since glade uses libxml - you can take the glade3 tarball as an
> example...
> you'll notice in the configure.in you have a PKG_CHECK_MODULES() line for
> all or most required packages - followed by AC_SUBST() - like so:
>
> PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.10.0  libxml-2.0 >= 2.4.0)
> AC_SUBST(GTK_LIBS)
> AC_SUBST(GTK_CFLAGS)
>
> This above lines basicly ensure the right versions of gtk+ and libxml2,
> and
> then the `_LIBS' & `_CFLAGS' variables will be created with the `GTK'
> prefix
> (as it was the first argument to the PKG_CHECK_MODULES macro) so then
> you have GTK_LIBS & GTK_CFLAGS available in the configure script - but
> to propagate those values to the makefiles - you need the AC_SUBST
> commands,
> look to glade3/src/Makefile.am to see how the GTK_LIBS & GTK_CFLAGS are
> then
> used to compile glade.
>
> Thats basicly it.
>
> Cheers,
>                                -Tristan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20061029/391dd171/attachment.html 


More information about the Glade-users mailing list