1.下载libxml2库
ftp://xmlsoft.org/libxml2/libxml2-sources-2.9.9.tar.gz
2.
将下载后的文件解压到如下目录
E:osglibxml2libxml2-2.9.9
3.
新建E:osglibxml2libxml2目录
把安装libiconv生成的iconv.lib、iconv.h文件夹拷贝到E:osglibxml2libxml2文件夹下的lib和include文件夹
4.编译配置
打开X64 Native Tools Command Prompt for VS 2019程序
cd E:osglibxml2libxml2-2.9.9win32
cscript configure.js compiler=msvc prefix=E:osglibxml2libxml2 include=E:osglibxml2libxml2include lib=E:osglibxml2libxml2lib debug=no iconv=yes
4.编译
nmake /f Makefile.msvc install > releasex.log
-----------------------------------------