PocoCryptod.lib 和 PocoNetSSLd.lib 库在 CMake 构建期间未生成。

huangapple go评论49阅读模式
英文:

PocoCryptod.lib & PocoNetSSLd.lib libraries not built during cmake

问题

我正在尝试安装 POCO 以便能够运行 API 请求。当我按照 poco 网站上的说明进行操作时,有两个库从未安装。这些库分别是:

PocoCryptod.lib
PocoNetSSLd.lib

当我运行以下命令时:

cmake -H/path/to/poco -B/path/to/poco-build

我收到以下错误消息:

-- 未找到 OpenSSL,请尝试在系统变量 OPENSSL_ROOT_DIR 中设置 OpenSSL 根文件夹的路径(缺少:OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)

我应该在哪里设置 OPENSSL_ROOT_DIR?

我感到困惑。有什么帮助吗?

英文:

I am trying to install POCO so I can run api requests. 2 libraries are never installed when I follow the directions on the poco site. These libraries are:

PocoCryptod.lib
PocoNetSSLd.lib

When I run

cmake - H/path/to/poco -B/path/to/poco-build 

I get the following error:

--Could not find OpenSSl, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)  

Where do I set the OPENSSL_ROOT_DIR?

I'm confused. Any help?

答案1

得分: 0

在Windows环境变量中创建一个名为OPENSSL_ROOT_DIR的新变量,将其设置为poco解压文件的位置]\openssl\build\win64\bin\debug。还要将包含目录移动到这个位置。我之前遇到缺少头文件的问题是因为在之前的尝试中已将它们删除。这对你来说不应该是个问题。

英文:

I finally figured it out. Go to windows environment variables and create a new variable OPENSSL_ROOT_DIR. Set it to poco-unzipped-files-location]\openssl\build\win64\bin\debug. Also move the include directory to this location. My problem with the missing header files was that I had removed them during a previous try. It shouldn't be a problem for you.

huangapple
  • 本文由 发表于 2023年3月4日 06:43:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/75632453.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定