5

VS2022编译openssl静态库

 1 year ago
source link: https://www.lpime.cn/article/125
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

openssl

vs2022编译openssl

下载openssl

下载地址:https://www.openssl.org/,我这里是openssl-1.1.1p.tar.gz

安装perl

我安装的是strawberry-perl-5.32.1.1-64bit.msi(自行百度)

  1. 用everything软件找vcvars32.bat所在位置

  2. 打开命令终端(管理员启动)

  3. 运行vcvars32.bat(编译64位的就运行vcvars64.bat)

  4. cd到openssl源码目录下

  5. 运行perl configure no-shared VC-WIN32 no-asm --prefix=d:\programs\OpenSSL

64位就运行perl configure no-shared VC-WIN64A no-asm --prefix=d:\programs\OpenSSL

如果指定编译的版本,openssl会报错,自己看一下符合的VC-XXX重新运行,也有报错信息讲目标计算器不匹配

  1. 运行nmake

  2. 运行nmake install 到d:\programs\OpenSSL

编译curl、zip、openssl的地址:编译libcurl+zlib+openssl_Barry__的博客-CSDN博客

本文由 Ryan 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: 2022/09/23 15:56


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK