"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
: FindOpenSSLFind 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中丢失的库错误?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)