CMAKE_USE_SYSTEM_CURL为ON,但未找到卷曲 [英] CMAKE_USE_SYSTEM_CURL is ON but a curl is not found

查看:81
本文介绍了CMAKE_USE_SYSTEM_CURL为ON,但未找到卷曲的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 ./bootstrap --system-curl 与system-curl安装cmake,如

I was trying to install cmake with the system-curl, with ./bootstrap --system-curl, as seen here. Doing that, I got:

    -- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:413 (message):
  CMAKE_USE_SYSTEM_CURL is ON but a curl is not found!
Call Stack (most recent call first):
  CMakeLists.txt:682 (CMAKE_BUILD_UTILITIES)


-- Configuring incomplete, errors occurred!
See also "/root/temp/cmake-3.14.5/CMakeFiles/CMakeOutput.log".
See also "/root/temp/cmake-3.14.5/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake

推荐答案

对我来说,运行 ./bootstrap --no-system-curl 会导致在open-cv上运行cmake时出错,因为找不到https协议.所以我需要运行 ./bootstrap --system-curl .

For me running ./bootstrap --no-system-curl led to errors when running cmake on open-cv, because the https protocol could not be found. So I needed to get ./bootstrap --system-curl running.

解决方案是安装curl开发依赖项.cmake需要这些,而不仅仅是卷曲.

The solution is to install curl dev dependencies. These are needed by cmake, not just curl.

我跑了

sudo apt-get install curl
sudo apt-get install libssl-dev libcurl4-openssl-dev

这篇关于CMAKE_USE_SYSTEM_CURL为ON,但未找到卷曲的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆