Premise: Perl is required to be installed here. If you do not want to introduce it, you just need to install it online. If you want to add environment variables to the system environment variables, select
Because problems often occur when using do_ms, NASM is used for installation here, so there must also be an NASM environment. Just download it online and install it. decompress the version, there will be no environment variable settings during the installation process, so the next step is fine.
1. Official Website
Http://www.openssl.org/source/openssl-1.0.1j.tar.gz
2. decompress the package to the specified directory.
Example: e: \ OpenSSL
The content is as follows:
3. Find the vs2010 command tool in the Start Menu.
Click Open and enter the following command to add the NASM path to the path.
4. Enter the OpenSSL decompression directory.
Create an OpenSSL installation directory
5. InputPerl configure VC-WIN32 -- prefix = E:/openssl_libSet the 32-bit environment and installation directory. The relative path of the installation directory here does not seem to work. I tried it for a long time and did not succeed.
Press ENTER
6. Generate the makefile and enterAfter Ms \ do_nasm press ENTER
7. You can choose to generate various libraries at this time.
Use nmake-F Ms \ NTDLL. Mak to generate a dynamic library
Use nmake-F Ms \ nt. Mak to generate a static library
The NTDLL. Mak and NT. Mak files can be modified. to compile them into a dynamic or static debug version, you need to modify the corresponding dynamic or static files.
Find the cflag flag in the corresponding file and change it to the following
Dynamic: cflag =/MD/Ox/O2/ob2
Dynamic Debug: cflag =/MDD/Zi/OD/ob2
Static: cflag =/MT/Ox/O2/ob2
Static Debug: cflag =/MTD/Zi/OD/ob2
8. Run the following command as needed:
Nmake-F Ms \ NTDLL. Mak to generate a dynamic library
Nmake-F Ms \ nt. Mak generate static library
Enter the following command to generate a static library. Press enter.
It takes about 2 minutes to run. Please wait.
9. Enter nmake-F Ms \ nt. Mak install to install the static library.
After the installation is successful, the effect is as follows:
10. other available commands
Nmake-F Ms \ NTDLL. Mak test dynamic library
Nmake-F Ms \ nt. Mak test static library
Nmake-F Ms \ NTDLL. Mak install dynamic library
Nmake-F Ms \ nt. Mak install static library
Nmake-F Ms \ NTDLL. Mak clean
Nmake-F Ms \ nt. Mak clean
Reference http://www.cnblogs.com/openiris/p/3812443.html for this article
Http://blog.chinaunix.net/uid-192452-id-4211890.html
Openssl-1.0.1j vs2010 Compilation