CMAKE_USE_SYSTEM_CURL 已打开但未找到卷曲

Rex*_*rus 2 curl cmake

我试图使用 system-curl 安装 cmake,如此./bootstrap --system-curl所示。这样做,我得到了:

    -- 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
Run Code Online (Sandbox Code Playgroud)

Fab*_*wig 7

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

解决方案是安装curl dev依赖项。这些是cmake 需要的,而不仅仅是curl 需要的。

我跑:

sudo apt-get install curl
sudo apt-get install libssl-dev libcurl4-openssl-dev
Run Code Online (Sandbox Code Playgroud)