我正在使用 Visual Studio 2015 编译 OpenSSL。我已经安装了:
Windows 10 上的 Visual Studio 2015。
ActivePerl-5.24.0.2400-MSWin32-x64-300558。
nasm-2.11.08-win32。
OpenSSL 源代码由 git clone git://git.openssl.org/openssl.git
我所做的是:
-
创建一个包含以下行的批处理文件。
@call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
@set path=%path%;C:\Users\gchen\AppData\Local\nasm
perl Configure VC-WIN64A —prefix=C:\test\openssl
现在我应该做ms\do_win64a
,但我找不到这个批处理文件。在目录中ms
,有文件
2016/08/22 17:39 <DIR> .
2016/08/22 17:39 <DIR> ..
2016/08/21 14:23 3,646 applink.c
2016/08/21 14:23 1,247 cmp.pl
2016/08/21 14:23 2,815 segrenam.pl
2016/08/21 14:23 4,541 tlhelp32.h
2016/08/21 14:23 1,137 uplink-common.pl
2016/08/21 14:23 1,472 uplink-ia64.pl
2016/08/21 14:23 1,111 uplink-x86.pl
2016/08/21 14:23 1,594 uplink-x86_64.pl
2016/08/21 14:23 4,225 uplink.c
2016/08/21 14:23 2,268 uplink.h
但没有ms-win64a.bat。
我做错了什么?
新的 1.1.0 版本中构建过程发生了变化。也许你已经弄清楚了自己,但无论如何:
从 1.1.0 开始没有ms\do_*.bat
文件不再。
而是执行以下步骤:
Windows 上的 x32 编译:
perl Configure VC-WIN32
nmake
nmake test
Windows 上的 x64A 编译:
perl Configure VC-WIN64A
nmake
nmake test
像以前一样配置编译器环境并将路径指向 Perl(以及 NASM,如果使用的话)。
资料来源:INSTALL
1.1.0 版本中包含的文件。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)