Openssl-1.1.1-pre1 Windows environment Compilation

Source: Internet
Author: User
Tags openssl library openssl version

Scene
VS2015 compiling Openssl-1.1.1-pre1


Tools
Nasm-2.14rc0-installer-x64.exe
Activeperl-5.24.3.2404-mswin32-x64-404865.exe
Openssl-1.1.1-pre1.tar.gz


Environment variables
C:\Program files\nasm (add assembler path)
C:\Program Files (x86) \microsoft Visual Studio 14.0\vc\bin (VS2015 compilation path)


Operation
1) Perl Configure Vc-win32 [no-shared] [no-asm] [no-tests] [--debug]--prefix=d:\openssllib
Vc-win32: Can be modified as required to 64 bits, etc., no-shared to compile a static library, not add the default compiler is a dynamic library, no-tests do not need to tests function, if only the OpenSSL can be added to the library, otherwise there may be many errors caused by the compilation but --debug to compile the debug version, the release version is not compiled by default.
2) NMAKE, after compiling the pass, then nmake install to the directory specified by--prefix=.
3) If you want to compile multiple versions (RELEASE,DEBUG), it is best to first nmake clean, then repeat the 3rd step.
Attention:
The runtime Library of the 1.VS project should be selected to match the compiled OpenSSL library, especially the dynamic library, which might otherwise compile
2. If you need to use a static library, you may also need to add a ws2_32.lib,crypt32.lib library if you compile the error such as LNK2019.
3.NASM Assembler does not install the following error
C:\users\admin\downloads\openssl-1.1.1-pre1>perl Configure Vc-win32
Using Implicit seed configuration
Configuring OpenSSL version 1.1.1-pre1 (0x10101001l) for Vc-win32
NASM not found-please read INSTALL and NOTES. WIN for further details
4It looks like you don ' t has either nmake.exe or Dmake.exe on your path error solution
It looks like you don ' t has either nmake.exe or Dmake.exe on your PATH,
Able to execute the commands from a Makefile. You can
Install Dmake.exe with the Perl package Manager by running:
PPM Install Dmake
Resolution: Perform PPM install dmake, installing Dmake.
Description: PPM is a Perl graphical package management tool, Dmake is a tool similar to GNU make, supporting cross-platform
Current installation VS2015, search to Nmake.exe, then execute Vcvarsall.bat, and add the NMAKE path to VS to environment variable or there is a problem


Openssl-1.1.1-pre1 Windows environment Compilation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.