Skip to content

pig4210/openssl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

openssl

这里提供的Makefile.bat,使用VS2017命令行编译项目

如需使用其它VS,请修改如下配置:

set VCPATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build

源代码目录自动定位,如需指定其它源代码目录,请修改如下代码的VPATH:

for /d %%P in ("%MyPath%\\%ProjectName%*") do set VPATH=%%~fP

在已有VC命令行环境下运行脚本,只编译当前平台相符的库

无VC命令行环境时,编译x64 & x86


编译openssl-1.1.x

  • 编译前需要安装ActivePerl
  • 编译前需要安装dmake
set ACTIVEPERL_PPM_HOME=\Perl\tmp
ppm install dmake
  1. 打开VC命令行(x64/x86)
  2. 进入openssl目录
  3. 配置(x64/x86):
    1. x64配置:perl Configure VC-WIN64A shared no-asm no-shared
    2. x86配置:perl Configure VC-WIN32 shared no-asm no-shared
  4. 开始编译:
    1. 全部编译:nmake
    2. 只编译LIB:nmake build_libs
  5. 如编译成功,测试:nmake test
  6. 结果在当前目录。libcrypto.lib & libssl.lib
  7. 清除:nmake clean
  • 注意到nmake clean会删除include\opensslconf.h,故应在clean之前提取

编译openssl-1.0.x

  • 编译前需要安装ActivePerl
  1. 打开VC命令行(x64/x86)
  2. 进入openssl目录
  3. 配置(x64/x86):
    1. x64配置:perl Configure VC-WIN64A shared no-asm no-shared
    2. x86配置:perl Configure VC-WIN32 shared no-asm no-shared
  4. 继续配置:
    1. x64配置:ms\do_win64a
    2. x86配置:ms\do_ms
  5. 开始编译:
    1. 编译LIB:nmake -f ms\nt.mak
    2. 编译DLL:nmake -f ms\ntdll.mak
  6. 如编译成功,测试:nmake -f ms\nt.mak test
  7. 结果目录:openssl-1.0.x/inc32 & openssl-1.0.x/out32
  8. 清除:nmake -f ms\nt.mak clean

About

Compile openssl library For Windows with VS under command line

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy