'Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) on CMake
I'm trying to use api.ai C++ library on Windows 7. (https://github.com/api-ai/libapiai) But i can not configuring that files..
I installed CMake and MinGW.
in build directory -> cmake .. -G "MinGW Makefiles" -> Error !!
===>>> error is below <<<
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake/share/cmake-3.4/Modules/FindCURL.cmake:61 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:45 (find_package)
I don't know how can I solve. what is curl_library? I can use that on Windows 7? not linux/unix etc..
Solution 1:[1]
Try installing curl with the dev libraries:
sudo apt update && sudo apt upgrade && sudo apt install curl && sudo apt-get install libcurl4-openssl-dev
Solution 2:[2]
If you are using Ubuntu: sudo apt-get install libcurl4-openssl-dev
If you are using Centos: sudo yum install libcurl-devel
Solution 3:[3]
My issue was fixed by,(installed libssl-dev addtionally to @Josh answer)
sudo apt-get install curl
sudo apt-get install libssl-dev libcurl4-openssl-dev
Solution 4:[4]
In fedora, install libcurl-devel
sudo dnf install libcurl-devel
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Muhammad Mubashir |
| Solution 3 | Asanka |
| Solution 4 | pradeep karunathilaka |
