Re: [xml] Release of libxml2-2.5.9 - Windows compilation



On Mon, August 11, 2003 17:59 +0800 Daniel Veillard wrote:

On Mon, Aug 11, 2003 at 07:33:47AM +0800, William M. Brack wrote:
Hi all,

  For anyone wanting to compile this release under Windows, there
is
a bug (already corrected in CVS).  It is easy to fix - just edit
the file libxml2.def.src and make the following 2 corrections:-
[...]

Since libxml2.def.src is automatically generated, I think we should
add a default rule in the existing makefiles to rebuild it
automatically.
Since adding Makefile.am and co. in win32 is likely to generate more
troubles, I think simply adding a rule in the doc/Makefile.am based
on libxml2-api.xml and $(srcdir)/../win32/defgen.xsl might be the
simplest
way to avoid such problem in the future, what do you think ?

Well, I'm very much in favour of any automation, but there is one
small problem - the generation requires an xslt transformation, and
I don't think it's reasonable to require anyone wanting to compile
under Windows to have xsltproc previously installed (in fact, there
is a "chicken and egg" problem for fresh installs).  So, it seems to
me that we can't get away from including a pre-generated copy of
libxml2.def.src; the best we can do is check within the doc Makefile
whether xsltproc is installled and, if it is, regenerate
libxml2.def.src whenever libxml2-api.xml is regenerated.  Does that
sound reasonable?

Bill



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