[Glade-users] Set make up to compile with libxml
- From: zpon.dk at gmail.com (Søren Juul)
- Subject: [Glade-users] Set make up to compile with libxml
- Date: Sun, 29 Oct 2006 19:02:01 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]