c – 如何修复CMake中丢失的库错误?

c – 如何修复CMake中丢失的库错误?,第1张

概述我正在设置一个新服务器,CMake 3.14.0-rc1向我发送错误消息.我在这里尝试一些解决方案,但我找不到正确的解决方案. "CMake Error at C:/Program Files/CMake/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find Open 我正在设置一个新服务器,CMake 3.14.0-rc1向我发送错误消息.我在这里尝试一些解决方案,但我找不到正确的解决方案.

"CMake Error at C:/Program files/CMake/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:137 (message):  Could NOT find OpenSSL (missing: OPENSSL_liBRARIES)Call Stack (most recent call first):  C:/Program files/CMake/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)  src/cmake/macros/FindOpenSSL.cmake:184 (find_package_handle_standard_args)  CMakeLists.txt:92 (find_package)"

这是消息.
我手动添加缺少的条目但不起作用. (windows 10和OpenSSL 1.1.1a版不轻装.

谢谢大家可以帮我解决问题.

解决方法 CMake自动调用函数 FindOpenSSL

FindOpenSSL

Find the OpenSSL encryption library.
This module will set the following variables in your project:

OPENSSL_FOUND
System has the OpenSSL library.

OPENSSL_INCLUDE_DIR
The OpenSSL include directory.

OPENSSL_CRYPTO_liBRARY
The OpenSSL crypto library.

OPENSSL_SSL_liBRARY
The OpenSSL SSL library.

OPENSSL_liBRARIES
All OpenSSL librarIEs.

OPENSSL_VERSION
This is set to $major.$minor.$revision$patch (e.g. 0.9.8s).

然而,缺少OPENSSL_liBRARIES;它通常意味着需要在开发环境中安装openssl.你通常需要devel包.

总结

以上是内存溢出为你收集整理的c – 如何修复CMake中丢失的库错误?全部内容,希望文章能够帮你解决c – 如何修复CMake中丢失的库错误?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1229279.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-06
下一篇 2022-06-06

发表评论

登录后才能评论

评论列表(0条)

保存