【发布时间】:2017-05-07 08:35:00
【问题描述】:
我想将基于 OpenSSL 的项目移植到使用 OpenSSL 的 Windows 上。我有 Visual Studio 2010,我从 their download page 下载了 OpenSSL。
我正在尝试按照How to use OpenSSL with Visual Studio 的指示进行操作,但找不到任何库文件夹 (lib) 或 dll。
我也收到错误 Cannot open include file: 'openssl/openssl.conf.h': No such file or directory 尝试使用的文件是“e_os2.h”文件。
- 为什么没有 lib 文件夹或 dll 文件?
- 为什么它试图包含原始包中不存在的文件?
【问题讨论】:
-
您必须自己从 MSVC 或控制台构建库
-
OpenSSL 下载中包含 Pearl 脚本吗?
-
1.您下载了 source 代码,因此您必须自己编译它。 2.我相信
openssl/openssl.conf.h是构建过程的结果。 -
按照INSTALL document 中列出的 Windows 说明进行操作。它可能会归结为
perl Configure VC-WIN64A然后nmake然后nmake test然后nmake install。然后,一旦你准备好了,你就必须配置你的 Visual Studio 以包含新 OpenSSL 安装的include文件夹,以便它可以找到openssl/openssl.conf.h。 -
它不将其识别为命令我认为您错过了将 perl 添加到路径的选项,或者您在安装。
标签: c++ visual-studio-2010 openssl