OpenSSL windows compiled 32-bit &64 bit

Source: Internet
Author: User
Tags openssl version openssl windows

OpenSSL version: openssl-1.0.0k

64-bit compilation

1, the compilation environment:
OPENSSL-1.0.0A must be compiled with vs2008 (Open Visual Studio x64 cross Tools Command Prompt), Vc6+nasm32 cannot be compiled, Because openssl-1.0.0a requires cl.exe version is relatively high, VC6 cannot compile, so compile with vs2008.

2, 64-bit compilation:

Run Configure:
Perl Configure vc-win64a or Perl Configure debug-vc-win64a

Create a Makefile file: Note the slash in the path.
ms\do_win64a

To compile a dynamic library:
Nmake-f Ms\ntdll.mak

To compile a static library:
Nmake-f Ms\nt.mak

Use the 64-bit command-line compilation environment that VS2008 comes with, that is, use Nmake.exe under vs2008 installation directory/vc/bin/amd64/. If you report errors about CL or ML during the compilation process, run the Vcvarsamd64.bat with the Nmake.exe sibling at the command line to set the appropriate environment variable to enable 64-bit command-line compilation.

32-bit compilation

1, the compilation environment:
OPENSSL-1.0.0A must be compiled with VS2008, Vc6+nasm32 is unable to compile, because openssl-1.0.0a requirements cl.exe version is relatively high, VC6 can not compile, so vs2008 compiled.

2, 32-bit compilation:

Run Configure:
Perl Configure Vc-win32 or Perl Configure debug-vc-win32

Create a Makefile file: Note the slash in the path.
Ms\do_ms

To compile a dynamic library:
Nmake-f Ms\ntdll.mak

To compile a static library:
Nmake-f Ms\nt.mak

Use the 32-bit command- line compilation environment that VS2008 comes with, that is, use Nmake.exe under vs2008 installation directory/vc/bin/. If you report errors about CL or ML during the compilation process, run the Vcvars32.bat with the Nmake.exe sibling at the command line to set the appropriate environment variable to enable 32-bit command-line compilation.

Clears the compilation of the last OpenSSL dynamic library for recompilation: nmake-f ms\ntdll.mak Clean
Clears the compilation of the last OpenSSL static library for recompilation: nmake-f ms\nt.mak Clean

OpenSSL windows compiled 32-bit &64 bit

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.