我正在尝试使用./bootstrap --system-curl
和here一起在system-curl上安装cmake。这样做,我得到了:
-- 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
答案 0 :(得分:4)
对我来说,运行./bootstrap --no-system-curl
在open-cv上运行cmake时导致错误,因为找不到https协议。因此,我需要运行./bootstrap --system-curl
。
解决方案是安装curl开发依赖项。 cmake需要这些,而不仅仅是卷曲。
我跑了
sudo apt-get install curl
sudo apt-get install libssl-dev libcurl4-openssl-dev
答案 1 :(得分:0)
作为参考,我解决了 this issue on Github。特别是,我从https://curl.haxx.se/download.html下载了curl源代码 并使用以下命令编译curl:
/CurlExtractFolder$ ./configure --with--ssl
/CurlExtractFolder$ make
/CurlExtractFolder$ sudo make install
答案 2 :(得分:0)
或者,您也可以通过运行./bootstrap --no-system-curl
来使用cmake提供的curl库。