CMake找不到OpenSSL库[关闭]

hfyxw5xn  于 12个月前  发布在  其他
关注(0)|答案(1)|浏览(201)

**已关闭。**此问题需要debugging details。它目前不接受回答。

编辑问题以包括desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将帮助其他人回答这个问题。
10天前关闭。
Improve this question
我在WSL:Ubuntu上使用CMake。我从github克隆了OpenSSL库,这是我的CMakeLists.txt文件和我在尝试构建时得到的错误。我错过了什么或做错了什么,不允许它被发现?

svmlkihl

svmlkihl1#

尝试更新您的软件包:sudo apt-get update sudo apt-get install libssl-dev
你可以指定openssl的根目录:set(OPENSSL_ROOT_URL“/usr/include/openssl”)//将文件路径更改为您的根目录
找到openssl:find_package(需要OpenSSL)
如果问题没有按预期解决,并且您再次看到错误,请联系我

相关问题