win10环境编译支持xp的libcurl+openssl踩过的坑

本文档详述了在Win10系统中使用VS2013编译32位libcurl和openssl,以支持Windows XP的过程。包括编译openssl、zlib和libcurl的步骤,以及解决在XP上运行时遇到的正常化库和初始化临界区扩展函数的问题。通过修改编译选项和配置,最终成功实现libcurl在XP上的运行。
摘要由CSDN通过智能技术生成

1、编译环境

win10环境,64位,vs2013

2、使用环境

dll方式、兼容xp、32位

3、编译过程

3.1 编译openssl

3.1.1. 使用工具ActivePerl 
http://www.activestate.com/activeperl/downloads

默认下一步安装就好,安装的最后,需要添加到PATH环境变量中,目的是在cmd.exe能直接运行。

测试是否安装成功,在cmd中,perl -version

C:\Users\Tenpo>perl -version

This is perl 5, version 26, subversion 3 (v5.26.3) built for MSWin32-x64-multi-thread
(with 2 registered patches, see perl -V for more detail)

Copyright 1987-2018, Larry Wall

Binary build 2603 [a95bce075] provided by ActiveState http://www.ActiveState.com
Built Dec 17 2018 09:46:45

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

如果不能运行,则可能是没有设置环境变量,手动添加至PATH中(右键我的电脑->属性->高级系统设置->高级->环境变量)

3.1.2 下载源码

http://www.openssl.org/source/ 下载 1.0.2e 这个版本修复了Heartbleed漏洞。(可以使用最新版本,但是否有风险未知)

3.1.3 编译

解压源码目录,cmd中进入到openssl源码路径(我的是D:\3rdpart\https\openssl-1.0.2e)下执行

perl Configure VC-WIN32 no-
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值