windows平台vs2010編譯64位libiconv與libxml2

來源:互聯網
上載者:User

標籤:pre   https   存在   mat   format   msvc   efi   檔案   html   

(一)安裝libiconv
下載路徑https://ftp.gnu.org/pub/gnu/libiconv/
注意這裡選擇libiconv-1.11.1版本,因為之後的版本沒有Makefile.msvc檔案了。不解。。。
cd D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64
vcvars64.bat
cd PREFIX=D:\espa-product-formatter\XML2\libiconv-1.11.1
nmake -f Makefile.msvc DLL=1 MFLAGS=-MT NO_NLS=1 PREFIX=D:\espa-product-formatter\XML2\libiconv-1.11.1\hu
nmake -f Makefile.msvc install DLL=1 MFLAGS=-MT NO_NLS=1 PREFIX=D:\espa-product-formatter\XML2\libiconv-1.11.1\hu
nmake -f Makefile.msvc all install DLL=1 MFLAGS=-MT NO_NLS=1 PREFIX=D:\espa-product-formatter\XML2\libiconv-1.11.1\hu
產生的lib、bin、include檔案在上面hu檔案夾下,hu檔案夾是自己建立的,保證目錄存在。


(二)libxml2
下載libxml2,官網是:http://www.xmlsoft.org/downloads.html,是:ftp://gd.tuwien.ac.at/pub/libxml/.
版本是:libxml2-sources-2.9.0.tar.gz

解壓檔案,把安裝libiconv產生的lib、include檔案夾拷貝到libxml2檔案夾裡。
進入 Visual Studio 2008 Command Prompt;
cd D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64
vcvars64.bat
cd D:\espa-product-formatter\XML2\libxml2-2.9.0\win32
cscript configure.js compiler=msvc prefix=D:\espa-product-formatter\XML2\libxml2-2.9.0\win32\hu include=D:\espa-product-formatter\XML2\libxml2-2.9.0\include lib=D:\espa-product-formatter\XML2\libxml2-2.9.0\lib
nmake /f Makefile.msvc
nmake /f Makefile.msvc install
產生的lib、bin、include檔案在上面hu檔案夾下,hu檔案夾是自己建立的,保證目錄存在。

windows平台vs2010編譯64位libiconv與libxml2

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.