- 安装Perl, 添加到环境变量
http:// http://strawberryperl.com/
- 安装啊NASM, 添加到环境变量
- 使用VS命令行工具
我要编译的是64位的。然后切换到openssl文件夹执行配置
- perl Configure VC-WIN64A
可选的参数有:
perl Configure VC-WIN32
if you want 32-bit OpenSSL orperl Configure VC-WIN64A
if you want 64-bit OpenSSL orperl Configure VC-WIN64-ARM
if you want Windows on Arm (win-arm64) OpenSSL orperl Configure VC-WIN64-CLANGASM-ARM
if you want Windows on Arm (win-arm64) OpenSSL with assembly support using clang-cl as assembler orperl Configure VC-CLANG-WIN64-CLANGASM-ARM
if you want Windows on Arm (win-arm64) OpenSSL using clang-cl as both compiler and assembler orperl Configure VC-WIN32-HYBRIDCRT
if you want 32-bit OpenSSL dependent on the Universal CRT orperl Configure VC-WIN64A-HYBRIDCRT
if you want 64-bit OpenSSL dependent on the Universal CRT orperl Configure
to let Configure figure out the platform
- 开始make, 构建时间比较长
nmake
- nmake test
- nmake install
完整编译教程参考:https://github.com/openssl/openssl/blob/openssl-3.3/NOTES-WINDOWS.md