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

Thanks, that worked.
I just changed
pkg_modules="gtk+-2.0 >= 2.0.0"
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
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)

This above lines basicly ensure the right versions of gtk+ and libxml2,
then the `_LIBS' & `_CFLAGS' variables will be created with the `GTK'
(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
look to glade3/src/Makefile.am to see how the GTK_LIBS & GTK_CFLAGS are
used to compile glade.

Thats basicly it.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20061029/391dd171/attachment.html 

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