如何在windows中成功创建openssl?

时间:2017-01-03 05:12:09

标签: visual-studio-2013 openssl

当我在 WIN10(VS 2013)中制作 OpenSSL 时,我遇到了这样的问题:

enter image description here

我不知道为什么会失败,我该如何解决?

1 个答案:

答案 0 :(得分:1)

我注意到你正在构建openssl 1.1。构建过程与之前的版本略有不同。

https://github.com/openssl/openssl/blob/OpenSSL_1_1_0c/INSTALL

Windows上的

(仅选择其中一个配置目标):

$ perl Configure { VC-WIN32 | VC-WIN64A | VC-WIN64I | VC-CE }
$ nmake
$ nmake test
$ nmake install

https://github.com/openssl/openssl/blob/OpenSSL_1_0_0-stable/INSTALL.W32

Visual C++
----------

If you want to compile in the assembly language routines with Visual
C++, then you will need already mentioned Netwide Assembler binary,
nasmw.exe or nasm.exe, to be available on your %PATH%.

Firstly you should run Configure with platform VC-WIN32:

> perl Configure VC-WIN32 --prefix=c:\some\openssl\dir

Where the prefix argument specifies where OpenSSL will be installed to.

Next you need to build the Makefiles and optionally the assembly
language files:

- If you don't want to use the assembly language files at all then run:

  > perl Configure VC-WIN32 no-asm --prefix=c:/some/openssl/dir
  > ms\do_ms