VS2013 编译openssl

环境下载:

openssl-1.1.1: https://github.com/openssl/openssl/tree/OpenSSL_1_1_1-stable
perl: http://strawberryperl.com/ 选择32位版本

编译步骤:

1、安装perl环境,并且设置环境变量path += @perl安装目录/perl/bin
2、解压缩openssl压缩包,打开根目录下INSTALL文件,查看编译步骤
在这里插入图片描述
3、打开2013控制台:开始-所有程序—Microsoft visual studio2013——Visual Studio Tools——VS2013 x86 本机工具命令提示,管理员身份运行
4、切换到openssl解压出来的文件夹目录
5、按照上述步骤,执行如下命令:

Debug:

perl Configure VC-WIN32 zlib-dynamic no-asm --debug --prefix=@openssl编译输出目录 --with-zlib-include=@zlib头文件所在目录 [email protected]文件路径
nmake
nmake test
nmake install

Release:

perl Configure VC-WIN32 zlib-dynamic --release --prefix=@openssl编译输出目录 --with-zlib-include=@zlib头文件所在目录 [email protected]文件路径
nmake
nmake test
nmake install

整个过程持续10分钟左右。

猜你喜欢

转载自blog.csdn.net/xys206006/article/details/82988902