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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.