英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论