Windows platform compiled openssl-0.9.8k library (32-bit, 64-bit)

Source: Internet
Author: User

In recent work to use the Win64 data of OpenSSL, so the preliminary research, summary results such as the following:

    Note that the OpenSSL code is in a folder that does not have Chinese, otherwise "nmake-f Ms\ntdll.mak" may prompt "illegal characters in macros" such as Error
One, OpenSSL WIN7 x64 compilation
   Environment: WIN7 64-bit. Compiler: VS2010
   need to download Perl (e.g. http://downloads.activestate.com/ActivePerl/releases/5.16.3.1603/ Activeperl-5.16.3.1603-mswin32-x64-296746.msi) and Microsoft Platform SDK (VS2005 or VS2010)
0. Go to cmd, run C:\Program Files (x86) \microsoft Visual Studio 10.0\vc\bin\amd64\vcvars64.bat
   #拷贝 C:\Program Files (x86) \ Microsoft Visual Studio 10.0\vc\bin\amd64\ml64.exe to the MS folder (assuming Ml64.exe already has it, there is no need to copy)
1. Start the VS2010 console to configure the relevant environment variables--
2. Go to the Opensll folder, such as the compilation command for CD C:\openssl-0.9.8k
3.x64:
  > Perl Configure vc-win64a
  > ms\do_win64a  Creating makefile Files
  > nmake-f ms\ntdll.mak   compiling dynamic libraries (longer wait)
  > Nmake-f Ms\ntdll.mak test    Check whether the previous compilation was successful
  > nmake-f ms\ntdll.mak install   Installing the compiled OpenSSL to the specified folder

Optional Directives
> nmake-f Ms\ntdll.mak Clean clears the last time that the OpenSSL dynamic library was compiled (depending on the need, choose whether to compile the static library)
> nmake-f Ms\nt.mak Compile the static library (if necessary, choose whether to compile the static library)
> nmake-f Ms\nt.mak Clean clears the compilation of the last OpenSSL static library (if necessary, choose whether to compile the static library)

Ii. compiling OpenSSL under Windows (32-bit)
Environment: WIN7 64-bit, compiler: VS2010
Need to download Perl (e.g. http://downloads.activestate.com/ActivePerl/releases/5.16.3.1603/ Activeperl-5.16.3.1603-mswin32-x64-296746.msi) and Microsoft Platform SDK (VS2005 or VS2010)
0. Go to cmd and run C:\Program Files (x86) \microsoft Visual Studio 10.0\vc\bin\vcvars32.bat
#拷贝 C:\Program Files (x86) \microsoft Visual Studio 10.0\vc\bin\ml.exe to the MS folder (assuming Ml.exe is already there, there is no need to copy)
1. Start the VS2010 console to configure the relevant environment variables-(can be omitted)
2. Go to the Opensll folder. such as CD C:\openssl-0.9.8k
3.x86 the Compile command:
> Perl Configure vc-win32
Create a Makefile file
If you use MASM, execute the ms\do_masm command
If you use NASM, perform ms\do_nasm
Assuming nothing is useless, execute Ms\do_ms

> nmake-f ms\ntdll.mak compile Dynamic library (long wait Time)
> nmake-f ms\ntdll.mak Test Check whether the previous compilation was successful
> nmake-f Ms\ntdll.mak Install installs the compiled OpenSSL to the specified folder

Optional Directives
> nmake-f Ms\ntdll.mak Clean clears the last time that the OpenSSL dynamic library was compiled (depending on the need, choose whether to compile the static library)
> nmake-f Ms\nt.mak Compile the static library (if necessary, choose whether to compile the static library)
> nmake-f Ms\nt.mak Clean clears the compilation of the last OpenSSL static library (upon need.) Choose whether to compile the static library)

Windows platform compiled openssl-0.9.8k library (32-bit, 64-bit)

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.