How to build OpenSSL on Windows with Visual Studio 2017?

前端 未结 4 1412
渐次进展
渐次进展 2021-01-30 14:33

I am trying to use OpenSSL but I am stuck on the step of compiling. The OpenSSL project has very unfriendly (bad) documentation.

Is there any actual help how to build th

4条回答
  •  无人及你
    2021-01-30 15:01

    I've not used VS2017 but previous versions. I imagine it is much the same. In brief the steps are:

    1. Install Perl (either ActiveState or Strawberry)

    [EDIT, see my (kritzel_sw) comment below: I would strongly recommend to use Strawberry)]

    1. Install NASM

    2. Make sure both Perl and NASM are on your %PATH%

    3. Fire up a Visual Studio Developer Command Prompt with administrative privileges (make sure you use the 32-bit one if you are building 32-bit OpenSSL, or the 64-bit one if you are building 64-bit OpenSSL)

    4. From the root of the OpenSSL source directory enter perl Configure VC-WIN32, if you want 32-bit OpenSSL or perl Configure VC-WIN64A if you want 64-bit OpenSSL

    5. Enter nmake

    6. Enter nmake test

    7. Enter nmake install

    [EDIT, unless you change the target directory in the configuration, nmake install needs administrator privileges. So the VC command prompt must be started as administrator for this final step]

    If anything goes wrong at any stage, check the INSTALL file and the NOTES.WIN file.

提交回复
热议问题