已编译好的资源:https://download.csdn.net/download/key_xiaodj/10825547
一、资源下载
curl——官网下载:https://curl.haxx.se/download.html
二、资源配置
安装NASM,请看https://mp.csdn.net/postedit/84674485
三、编译支持SSL SSH ZLIB的libcurl
1) 在curl7.61.1文件夹根目录下创建deps\debug 与deps\release文件夹
2) 将openssl debug编译后生成的bin,include,lib放入deps\debug 中
将openssl release编译后生成的bin,include,lib放入deps\release中
3)将zlib debug编译后生成的bin,include,lib放入deps\debug 中
将zlib release编译后生成的bin,include,lib放入deps\release中
4)将libssh2 debug编译后生成的libssh2.lib放入deps\debug\lib 中,将libssh2.dll 放入deps\debug\bin中、将libssh2解压后的include下的头文件放入deps\debug\include中
将libssh2 release编译后生成的libssh2.lib放入deps\release\lib 中,将libssh2.dll 放入deps\release\bin中、将libssh2解压后的include下的头文件放入deps\release\include中
如图
5) 使用管理员权限打开VS2013 x86 本机命令工具提示,进入curl7.61.1文件夹的根目录,执行命令:
生成debug版 libcurl
>nmake /f Makefile.vc mode=dll VC=12 WITH_DEVEL=../deps/debug WITH_SSL=dll WITH_ZLIB=dll WITH_SSH2=dll DEBUG=yes ENABLE_SSPI=no ENABLE_IPV6=no
生成release 版 libcurl
>nmake /f Makefile.vc mode=dll VC=12 WITH_DEVEL=../deps/release WITH_SSL=dll WITH_ZLIB=dll WITH_SSH2=dll DEBUG=no ENABLE_SSPI=no ENABLE_IPV6=no
如图: