Compiling XML::LibXSLT and prereqs using MinGW

Compiling XML::LibXSLT and prereqs using MinGW

am 31.08.2010 15:17:57 von Michael.Ludwig

I want to install XML::LibXSLT using MinGW on ActivePerl 5.12 on XP Pro.

A prerequisite is to have the sources of the underlying C libraries, which I downloaded from ftp://xmlsoft.org/libxslt/ . It is in compiling LibXSLT (the C library) that I'm having problems. People experienced with using the MinGW toolkit might be able to help.

The setup is as follows:

C:\Opt\Src\libxslt - LibXSLT
C:\Opt\Src\libxslt\win32 - Win32 build env
C:\Opt\Src\libxslt\win32\configure.js - configure script
C:\Opt\Src\libxml2 - LibXML2
C:\Opt\Src\libxml2\include - added to INCLUDE
C:\Opt\Src\libxml2\include\libxml\xmlversion.h - one included header

This is what I'm doing:

dmake clean
dmake distclean

configure.js compiler=mingw ^ - using MinGW
prefix=C:\Opt\Lib\LibXSLT ^ - target dir
include=C:\Opt\Src\libxml2\include ^ - libxml2 headers
lib=D:\ActivePerl512\site\lib\auto\XML\LibXML - LibXML.dll

Let me open a short parenthesis here. One peculiarity I noted with 5.12 compared to previous versions is that there do not seem to be separate DLLs for the C and Perl libraries for LibXML2. I'm seeing one big DLL:

1.101.931 LibXML.dll

As compared to two DLLs for 5.10:

290.897 LibXML.dll
984.064 libxml2.dll

But maybe that's not a problem. So back to the main issue.

I have to edit the Makefile to adapt the subst makro for dmake. Not difficult.

But then, the error that stops me:

gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I..\libxslt -IC:\Opt\Lib\LibXSLT\include -D_DEBUG -g -DLIBXML_STATIC -DLIBXSLT_STATIC -DLIBEXSLT_STATIC -c -o int.xslt.
mingw\attributes.o ..\libxslt\attributes.c
In file included from ..\libxslt\libxslt.h:16,
from ..\libxslt\attributes.c:13:
.../config.h:92:31: libxml/xmlversion.h: No such file or directory

Note the -IC:\Opt\Lib\LibXSLT\include flag. There's nothing there and I didn't instruct dmake to look there, at least not consciously. Instead, I told it to look in include=C:\Opt\Src\libxml2\include, but it doesn't do that.

Is this something related to MinGW/dmake, or should I rather ask on the LibXSLT or LibXML mailing list?

--
Michael Ludwig
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Compiling XML::LibXSLT and prereqs using MinGW

am 02.09.2010 01:28:21 von Michael Ludwig

Ludwig, Michael schrieb am 31.08.2010 um 15:17 (+0200):
> I want to install XML::LibXSLT using MinGW on ActivePerl 5.12 on XP Pro.

> Is this something related to MinGW/dmake, or should I rather ask on
> the LibXSLT or LibXML mailing list?

I raised this issue at the LibXSLT mailing list as well:

[xslt] Compiling LibXSLT on Win32 using MinGW
http://mail.gnome.org/archives/xslt/2010-September/msg00000. html

--
Michael Ludwig
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs