赞
踩
官方建议使用 ActivePerl,自行下载安装。
自行在微软官方下载社区版VS2019进行安装。
1、 复制下面脚本,创建批处理文件 build_win.bat, 并保存到 openssl根目录:
:: run this script on "Developer Command Prompt for VS2019" @echo off @setlocal set CWD=%~dp0 set WIN32_BUILD=%CWD%\build\a32 echo "curdir %CWD%" if not exist %WIN32_BUILD% ( echo "create %WIN32_BUILD%" mkdir %WIN32_BUILD% ) echo "building a32, will install to %WIN32_BUILD% ..." :: cd %WIN32_BUILD% perl.exe Configure --prefix=%WIN32_BUILD%\install no-asm VC-WIN32 call ms\do_ms.bat :: static library nmake -f ms\nt.mak nmake -f ms\nt.mak test nmake -f ms\nt.mak install :: shared library rem nmake -f ms\ntdll.mak rem nmake -f ms\ntdll.mak test rem nmake -f ms\ntdll.mak install
2、从开始菜单打开 “Developer Command Prompt for VS2019”, 切换到openssl根目录,执行build_win.bat 脚本
同 Win32 编译,脚本更新并保存为build_win64.bat:
:: run this script on "x64 Native Tools Command Prompt for VS2019" @echo off @setlocal set CWD=%~dp0 set WIN64_BUILD=%CWD%\build\x64 echo "curdir %CWD%" if not exist %WIN64_BUILD% ( echo "create %WIN64_BUILD%" mkdir %WIN64_BUILD% ) echo "building x64, will install to %WIN32_BUILD% ... " :: cd %WIN64_BUILD% perl.exe %CWD%\Configure VC-WIN64A --prefix=%WIN64_BUILD%\install no-asm call ms\do_win64a.bat :: static library nmake -f ms\nt.mak nmake -f ms\nt.mak test nmake -f ms\nt.mak install :: shared library rem nmake -f ms\ntdll.mak rem nmake -f ms\ntdll.mak test rem nmake -f ms\ntdll.mak install
参考:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。