【问题标题】:Missing CMake variable when compiling with OpenSSL使用 OpenSSL 编译时缺少 CMake 变量
【发布时间】:2013-03-18 11:50:00
【问题描述】:

我正在尝试使用 CMake 在 Debian 上编译 servermod。似乎确实安装了每个必需的软件包。如果我开始编译,我会收到此错误:

    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    OPENSSL_CRYPTO_LIBRARIES (ADVANCED)

    OPENSSL_INCLUDE_DIR (ADVANCED)

    OPENSSL_SSL_LIBRARIES (ADVANCED)

我完全不知道如何解决它。必须在哪里设置?

【问题讨论】:

  • 你安装 OpenSSL 了吗?
  • 是的,确实安装了 openssl
  • 你能显示makefile吗?
  • 你能解释一下吗?抱歉,我不是专家,只是按照教程中给出的步骤下载了模组。

标签: linux compilation cmake


【解决方案1】:

你可能需要安装openssl的开发包。

apt install libssl-dev

我遇到了同样的问题,这为我解决了问题。

【讨论】:

    猜你喜欢
    • 2016-07-11
    • 1970-01-01
    • 2019-06-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多