系统环境
操作系统:Windows 7专业版(SP1)
系统类型:64位操作系统
编译环境
Microsoft Visual Studio 2010
下载
OpenSSL
下载地址:http://www.openssl.org/source
ActivePerl
下载地址:http://downloads.activestate.com/ActivePerl
安装:没啥好说的
编译步骤
启动Microsoft Visual Studio 2010 => Microsoft Visual Studio 2010 =>Visual Studio x64 Cross Tools Command Prompt (2010)
cd 到OpenSSL的下载路径例如(cd D:\adobe_study\openssl-1.0.1e)
按照OpenSSL下载目录中的"INSTALL.W64"文件(使用文本工具打开,例如UE)里提示的命令(如下)逐步进行操作。
> perl Configure VC-WIN64A
> ms\do_win64a
> nmake -f ms\ntdll.mak
> cd out32dll
> ..\ms\test
补充
编译Debug版本(xxxMDd.lib)
a.修改ms\do_win64a
perl util\mk1mf.pl VC-WIN64A >ms\nt.mak => perl util\mk1mf.pl debug VC-WIN64A >ms\nt.mak
perl util\mk1mf.pl dll VC-WIN64A >ms\ntdll.mak => perl util\mk1mf.pl debug dll VC-WIN64A >ms\ntdll.mak
b.修改ms\ntdll.mak
SSL=ssleay32 => SSL=ssleay32MDd
CRYPTO=libeay32 => CRYPTO=libeay32MDd
c.修改ms\libeay32.def —— LIBRARY LIBEAY32 => LIBRARY LIBEAY32MDd
d.修改ms\ssleay32.def —— LIBRARY SSLEAY32 => LIBRARY SSLEAY32MDd
e.运行 > nmake -f ms\ntdll.mak
2. 编译Debug版本(xxxMTd.lib)
a.修改ms\nt.mak
SSL=ssleay32 => SSL=ssleay32MTd
CRYPTO=libeay32 => CRYPTO=libeay32MTd
b.运行 > nmake -f ms\nt.mak