VS2013 curl源码编译(四)之curl7.61.1编译

已编译好的资源: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

如图:

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值