I have successfully gotten this working now and, so far, it is running without error (awaits segfault).
To get this to work I copied the lib, dll and include files to the CORE directory in <dir>/perl/lib. I then had to edit perl-libxml-mm.c to get it to compile with cl.exe.
I changed:
xmlChar * decoded = PmmFastDecodeString( PmmNodeEncoding(real_doc) ,
( xmlChar *)strin
+g,
( xmlChar *)real_
+doc->encoding);
to
xmlChar *decoded;
......
decoded = PmmFastDecodeString( PmmNodeEncoding(real_doc) ,
( xmlChar *)strin
+g,
( xmlChar *)real_
+doc->encoding);
I did get a few linker errors until I remembered to copy the zlib and iconv libs and headers into the core dir as well.
All of the libs were downloaded from xmlsoft. The versions of everything I used are:
- iconv-1.9.1-win32
- libxml2-2.6.10.win32
- zlib-1.1.4.win32
- XML::LibXML 1.58
I have packaged this up as a PPM and successfully installed it so I am most pleased.
As I had to edit some of the XS code I am not ready to pass this around until I rigorously test it. The suite tests worked, however, so YYMV. |