Installing OpenSSL
1. In Linux
Just install libssl using your package manager.
2. In Windows
These steps are valid for revision 0.9.8l. In other versions these instructions may change.
Common steps for MSC and MinGW
2.1. Download openssl-0.9.8l.tar.gz from
https://www.openssl.org/source/
2.2. Unpack archive to C:\temp\openssl-0.9.8m
2.3. Download and install ActivePerl
Steps using MSC
2.4. Now type in the command line
1. C:\temp\openssl-0.9.8m>perl Configure VC-WIN32 --prefix=c:/temp/openssl-bin/
2. Options
For Visual Studio 8
C:\temp\openssl-0.9.8m>%comspec% /k ""c:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"" x86
For Visual Studio 9
C:\temp\openssl-0.9.8m>%comspec% /k ""c:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86
3. C:\temp\openssl-0.9.8m>ms\do_masm.bat
4. Options
If you need static library
C:\temp\openssl-0.9.8m>nmake -f ms\nt.mak
If you need dynamic library
C:\temp\openssl-0.9.8m>nmake -f ms\ntdll.mak
2.5. The result is in next folders:
inc32: Include files
out32: *.lib files for static linking
out32dll: *.lib & *.dll files for dynamic linking
Steps using MinGW
2.4. Now type in the command line
C:\temp\openssl-0.9.8l>ms\mingw32
2.5. The result is in next folders:
inc32: Include files
out32: *.a & *.dll files for dynamic linking
Last steps
2.6. Add in "Setup/Build methods/Lib directories" menu, the directory where out32 and out32dll have been copied.
|