libcurl靜態庫編譯
libcurl7.4.0編譯
WIN32環境
根據自己需求編譯需要ssl+zlib,ssh2+zlib或者ssl+ssh2+zlib
openssl,ssh2都依賴於zlib所有最先編譯zlib
zlib編譯:
第一種:
下載zlib-1.2.8 vs2010命令提示進入 E:\xiu\zlib-1.2.8\contrib\masmx86
執行bld_ml32.bat
然後在目錄E:\xiu\zlib-1.2.8\下根據E:\xiu\zlib-1.2.8\contrib\masmx86\readme.txt
輸入nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" OBJA="match686.obj
inffas32.obj"
目錄下會產生 zlib.lib zdll.lib zlib1.dll
第二種:利用vs2010 ide
E:\xiu\zlib-1.2.8\contrib\vstudio\vc10開啟工程目錄zlibvc.sln進行編譯
openssl編譯:
根據文件,編譯好用的openssl
下載perl
最重要的下載nasm,這是重點,用nasm編譯openssl效率更高,文件E:\xiu\openssl-1.0.0o\INSTALL.W32有說明
Firstly
you should run Configure with platform VC-WIN32:
> perl Configure VC-WIN32 --prefix=c:\some\openssl\dir
Where the prefix argument specifies where OpenSSL will be installed to.
Next you need to build the Makefiles and optionally the assembly
language files:
- If you are using NASM then run:
> ms\do_nasm
- If you don't want to use the assembly language files at all then run:
> perl Configure VC-WIN32 no-asm --prefix=c:/some/openssl/dir
> ms\do_ms
nasm下載即用,主要path新增一下