openssl编译

ActivePerl——官网网址:https://www.activestate.com/products/activeperl/

OPENSSL——github地址:https://github.com/openssl/openssl

 perl Configure VC-WIN64A no-asm

nmake

perl Configure VC-WIN64A no-asm no-tests --debug --prefix=e:\软件包\openssl\openssl-master\lib\debug
perl Configure VC-WIN64A no-asm no-tests --release --prefix=e:\软件包\openssl\openssl-master\lib\release

(上面这两条配置和下面的生成不同,上面生成的静态库文件名称含有static,并且链接过程中不需要crypt32.lib库,按照下面的配置编译生成的静态库文件不含static,链接过程中需要crypt32.lib

 

执行如下配置命令(任选一条命令):

x86静态库
>perl Configure VC-WIN32 no-shared no-asm no-tests --debug --prefix=E:\WeiYi\openssl-master\bulid\static32\debug
>perl Configure VC-WIN32 no-shared no-asm no-tests --release --prefix=E:\WeiYi\openssl-master\bulid\static32\release

x86位动态库
>perl Configure VC-WIN32 shared no-asm no-tests --debug --prefix=E:\WeiYi\openssl-master\bulid\share32\debug
>perl Configure VC-WIN32 shared no-asm no-tests --release --prefix=E:\WeiYi\openssl-master\bulid\share32\release

x64位静态库
>perl Configure VC-WIN64A no-shared no-asm no-tests --debug --prefix=E:\WeiYi\openssl-master\bulid\static64\debug
>perl Configure VC-WIN64A no-shared no-asm no-tests --release --prefix=E:\WeiYi\openssl-master\bulid\static64\release

x64位动态库
>perl Configure VC-WIN64A shared no-asm no-tests --debug --prefix=E:\WeiYi\openssl-master\bulid\share64\debug
>perl Configure VC-WIN64A shared no-asm no-tests --release --prefix=E:\WeiYi\openssl-master\bulid\share64\release

IA64位静态库
>perl Configure VC-WIN64I no-shared no-asm no-tests --debug --prefix=E:\WeiYi\openssl-master\bulid\static64I\debug
>perl Configure VC-WIN64I no-shared no-asm no-tests --release --prefix=E:\WeiYi\openssl-master\bulid\static64I\release

IA64位动态库
>perl Configure VC-WIN64I shared no-asm no-tests --debug --prefix=E:\WeiYi\openssl-master\bulid\share64I\debug
>perl Configure VC-WIN64I shared no-asm no-tests --release --prefix=E:\WeiYi\openssl-master\bulid\share64I\release

2) 执行安装命令:>nmake install

3) 如果想重编译,最好先清理,清理命令:>nmake distclean

四、本人自己所遇到的问题及解决的方法:

1) 在执行安装命令时报错:

crypto\kmac\kmac.c : error C2220: 警告被视为错误 - 没有生成“object”文件
crypto\kmac\kmac.c : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
NMAKE : fatal error U1077: “"D:\Software\Microsoft Visual Studio 12.0\VC\BIN\cl.EXE"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “"D:\Software\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"”: 返回代码“0x2”

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值