How to compile OpenSSL x64

Source: Internet
Author: User

Prerequisites:

X64 operating system;

    1. ActivePerl-5.10.1.1007-MSWin32-x64-291969.msi;
    2. Vs2008, supports x64 compilation. Add the corresponding module during installation;
    3. OpenSSLCodePackage.

Compilation process:

    1. Add the cross tool command prompt "x64 of Visual Studio 2008" to "external tools" in vs2008 ";
      Note: "Visual Studio 2008 x64 cross tool command prompt" is different from "Visual Studio 2008 command prompt;
      For how to add the "x64 cross tool command prompt", refer to the notes;
    2. Decompress the OpenSSL code package;
    3. Open vs2008, run the "x64 cross tool command prompt", and enter the OpenSSL code package directory;
    4. Step 1, Perl configure VC-WIN64A
    5. Step 2, MS/do_win64a
    6. Step 3: Edit ms/NT. Mak (or MS/NTDLL. Mak) and modify the input directory:
      # The output directory for everything intersting
      Out_d = out64
      # The output directory for all the temporary muck
      Tmp_d = tmp64
      # The output directory for the header files
      Inc_d = inc64
      Inco_d = inc64/OpenSSL
    7. Step 4, after nmake-f ms/NT. Mak is successful, you can get libeay64.lib


Note:
How to add a command prompt for the Cross tool of Visual Studio 2008 x64:

    1. Run "vcvarsx86_amd64.bat" in "$ (vc_install_dir) 0/VC/bin/x86_amd64" to register the environment variable;
    2. Open vs2008, "Tools"-"external tools"-"add", as shown in:

      Click OK.
    3. Close vs2008 and restart. Run "vs 2008x64 command prompt" under "Tools ".

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.