在VS2017環境中編譯libxml2庫

libxml2庫編譯html


一、下載libxml2,官網是:http://www.xmlsoft.org/downloads.html, 我下載的版本是:libxml2-sources-2.9.7.tar.gz

二、解壓文件到目錄D:\libxml2-2.9.7spa


三、新建文件夾D:\xml把安裝libiconv生成的iconv.lib、iconv.h文件夾拷貝到xml文件夾下的lib和include文件夾。debug


四、打開 Visual Studio 2017 Command Prompt程序xml


五、cd D:\libxml2-2.9.7\win32htm


六、cscript configure.js compiler=msvc prefix=D:\xml include=D:\xml\include lib=D:\xml\lib debug=yesip


七、nmake /f Makefile.msvcio


八、nmake /f Makefile.msvc install編譯


完成後便可在D:\xml\bin文件夾下看到生成dll, 在include和lib 下可看到 頭文件夾 libxml 和 lib文件。file

相關文章
相關標籤/搜索