1. Download and install Perl
Address: http://downloads.activestate.com/ActivePerl/Windows/5.10/ActivePerl-5.10.0.1005-MSWin32-x86-290470.msi
2. Download The nasm-0.98.39 (assuming the directory is F: \ nasm-0.98.39 after decompression)
Address: http://www.bairuitech.com/upimg/soft/nasm-0.98.39-win32.zip
3. Download OpenSSL (assuming the directory is F: \ openssl-0.9.8a after decompression)
SVN address: http://svn.python.org/projects/external/openssl-0.9.8a/ (latest version is 0.9.8.g)
4. Start the vs command prompt Console (start/Program/Microsoft Visual Studio 2005/Visual Studio Tools/Visual Studio 2005 command prompt)
5. Enter the following commands in the console:
1)Cd f: \ openssl-0.9.8a
2)Set Path = % PATH %; f \ openssl-0.9.8a \; f \ nasm-0.98.39 \
3)Perl configure VC-WIN32
4)Ms \ do_nasm(Generate files such as MS \ nt. Mak and Ms \ NTDLL. Mak)
5) Modify Ms \ nt. mak and Ms \ NTDLL. remove/wx from the cflag definition. (/wx indicates treat warning as error. This switch will cause OpenSSL to fail to compile)
6)Vcvars32
7)Nmake-F Ms \ NTDLL. Mak
For details, see:
1) install openssk troubles solve http://blog.csdn.net/wangxing1018/archive/2008/05/25/2480447.aspx
2) OpenSSL compile http://blog.csdn.net/gnuser/archive/2009/06/01/4231249.aspx
Vibilin comments