0
点赞
收藏
分享

微信扫一扫

openssl3.0.0源码编译全过程(Visual Studio2017)

一、编译前准备

1、下载openssl3.0.0源码(根据需要自行下载吧!)

2、Perl工具下载安装 

3、Visual Studio 2017

二、配置生成makefile

1、启动Vs2017命令行工具,并切换至openssl源码目录

openssl3.0.0源码编译全过程(Visual Studio2017)_openssl

2、配置生成makefile

perl Configure VC-WIN64A --prefix=D:\openssl_x64_dbg

openssl3.0.0源码编译全过程(Visual Studio2017)_openssl源码编译_02

3、成功生成makefile

openssl3.0.0源码编译全过程(Visual Studio2017)_openssl_03

4、修改makefile

openssl3.0.0源码编译全过程(Visual Studio2017)_openssl源码编译_04

黄色标记处将:/O2 修改为 /Od,并注意不要去除 /debug项,否则生成的Release版本哦!

三、编译安装

注意:Visual Studio2017的命令工具,最好以管理员权限启动,否则安装过程中可能会报错!

nmake && nmake install

openssl3.0.0源码编译全过程(Visual Studio2017)_openssl_05openssl3.0.0源码编译全过程(Visual Studio2017)_openssl源码编译_06

四、编译成功

openssl3.0.0源码编译全过程(Visual Studio2017)_openssl源码编译_07

​​


举报

相关推荐

0 条评论