当前位置:网站首页>libcurl 7.61.0 VS2013 编译教程
libcurl 7.61.0 VS2013 编译教程
2022-06-10 18:14:00 【插件开发】
1.准备
下载好源码和工具,作者试验的是libcurl7.61.0和openssl1.1.1,读者可以自行百度。
2.编译openssl
参照作者博文:https://plugin.blog.csdn.net/article/details/125067409
得到.lib,.dll,.h 三类文件。如下图所示:
在libcurl源码文件夹下新建deps文件夹,并将上图中的bin,include和lib文件夹拷贝进去,如下图所示:
3.打开VS2013命令行控制台
并定位到控制台下:
4.输入命令
nmake /f Makefile.vc mode=dll ENABLE_IDN=no WITH_SSL=dll VC=12 MACHINE=x86 DEBUG=no
参数分析:
mode=static 表示生成静态链接库.lib文件,如果要生成动态链接库用 mode=dll
ENABLE_IDN=no 这个是必须加的,表示不使用Windows IDN APIs,默认是 yes,这样会导致使用时出现连接错误。
WITH_SSL=static 表示用Openssl的静态连接库(.lib)文件参与编译,如果用Openssl的动态链接库就写WITH_SSL=dll。
VC=12 表示用VS2013进行编译,也可以指定其他版本的VS。
MACHINE=x64 表示编译出的是64位版本程序,如果想编译出32位的用 MACHINE=x86
RTLIBCFG=static 表示静态编译CRT运行时库(/MT),否则默认是(/MD)动态链接运行时库。
DEBUG=no 表示编译release版本,如果想编译Debug版本用 DEBUG=yes。
更具体编译选项请阅读 curl\winbuild\BUILD.WINDOWS.txt 文档。
5.查看结果
在源码文件夹builds下可以查看结果。如下图所示:
6.作者答疑
如有疑问,敬请留言。
边栏推荐
- Db2 SQL PL的锚点类型和行数据类型
- 企业管理者的质疑,这么多年的信息化,我们的钱花哪去了?
- “数字化转型,数据先行”,谈谈数据治理对企业来说到底有多重要
- How to transform digital transformation? Which way?
- Introduction to DB2 SQL pl
- 【QNX Hypervisor 2.2 用户手册】3.2.3 ACPI表和FDT
- Detailed explanation of Lora module wireless transceiver communication technology
- Adobe Premiere Foundation (track related) (V)
- Linked List
- Adobe Premiere基础(动画制作-弹性动画)(八)
猜你喜欢

Uniapp native JS to convert the Gregorian calendar to the lunar calendar

Adobe Premiere基础特效(卡点和转场)(四)

数据处理时代,数据分析成为基础建设

实时商业智能BI(二):合理的ETL架构设计实现准实时商业智能BI

SaleSmartly | 再添新渠道Slack,助你拉近客户关系

Data URL

Adobe Premiere foundation - opacity (mixed mode) (XII)

How to set up salesmartly for Google Analytics tracking

Request header field xxxx is not allowed by Access-Control-Allow-Headers in preflight response问题

Wechat applet, get the current page and judge whether the current page is a tabbar page
随机推荐
VMware Horizon 8 2111 部署系列(十六)Blast带宽测试
In the era of data processing, data analysis has become the basic construction
【QNX Hypervisor 2.2 用户手册】3.2.2 VM配置示例
Dynamic SQL of DB2 SQL pl
In the digital era, how can enterprises manage data security and ensure the security of data assets
The value of Bi in the enterprise: business analysis and development decision
Screen output of DB2 stored procedure, output parameters, and return result set
Leecode27977 double finger needling
Data URL
The question of enterprise managers, where have we spent our money after so many years of informatization?
Adobe Premiere foundation - opacity (matte) (11)
HelloWorld example of TestNG and how to run it from the command line
Adobe Premiere基础-素材嵌套(制作抖音结尾头像动画)(九)
In the digital age, why should enterprises make digital transformation?
Ruijie x32pro brush openwrt enable wireless 160MHz
VMware horizon 82111 deployment series (XVI) blast bandwidth test
3. Golang并发入门
Adobe Premiere基础-不透明度(蒙版)(十一)
Adobe Premiere基础(视频的最后一步字幕添加)(六)
Linked List