Prerequisites:
X64 operating system;
- ActivePerl-5.10.1.1007-MSWin32-x64-291969.msi;
- Vs2008, supports x64 compilation. Add the corresponding module during installation;
- OpenSSLCodePackage.
Compilation process:
- 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;
- Decompress the OpenSSL code package;
- Open vs2008, run the "x64 cross tool command prompt", and enter the OpenSSL code package directory;
- Step 1, Perl configure VC-WIN64A
- Step 2, MS/do_win64a
- 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
- 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:
- Run "vcvarsx86_amd64.bat" in "$ (vc_install_dir) 0/VC/bin/x86_amd64" to register the environment variable;
- Open vs2008, "Tools"-"external tools"-"add", as shown in:
Click OK.
- Close vs2008 and restart. Run "vs 2008x64 command prompt" under "Tools ".