Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CMAKE_USE_SYSTEM_CURL已启用,但未找到旋度_Curl_Cmake - Fatal编程技术网

CMAKE_USE_SYSTEM_CURL已启用,但未找到旋度

CMAKE_USE_SYSTEM_CURL已启用,但未找到旋度,curl,cmake,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 r

我试图用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

作为参考,我解决了看 . 特别是,我从 并与以下内容一起编译:

/CurlExtractFolder$ ./configure --with--ssl
/CurlExtractFolder$ make
/CurlExtractFolder$ sudo make install

或者,您也可以通过运行
/bootstrap--no system curl
来使用cmake提供的curl库。

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

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

我跑:

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