cpr-example icon indicating copy to clipboard operation
cpr-example copied to clipboard

Unable to configure CMake

Open Meqolo opened this issue 5 years ago • 4 comments

When I try to configure CMake I get the following error: Set CURL_FOUND to TRUE. Set CURL_LIBRARIES to libcurl. Set CURL_INCLUDE_DIRS to C:/Users/#####/Desktop/Projects/cpr-example/opt/cpr/opt/curl/include;C:/Users/#####/Desktop/Projects/cpr-example/build/opt/cpr/opt/curl/include/curl. Using CURL_INCLUDE_DIRS: C:/Users/#####/Desktop/Projects/cpr-example/opt/cpr/opt/curl/include;C:/Users/#####/Desktop/Projects/cpr-example/build/opt/cpr/opt/curl/include/curl. Using CURL_LIBRARIES: CURL_LIBRARY-NOTFOUND. CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CURL_LIBRARY linked by target "cpr" in directory C:/Users/#####/Desktop/Projects/cpr-example/opt/cpr/cpr

I have completely cloned the repo and ran the submodules update command.

Meqolo avatar Jun 17 '19 17:06 Meqolo

+1 facing the exact same issue. Any help is greatly appreciated!

JonasBean avatar Jun 25 '19 10:06 JonasBean

+1 i found "Could NOT find LibSSH2 (missing: LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY)"

whyliuxing avatar Jun 26 '19 02:06 whyliuxing

I got around this by installing libcurl (specifically libcurl4-openssl-dev). My build host is raspbian. I had to modify the source to patch out one of the cases in error.cpp, but after that it worked.

peterjmorgan avatar Dec 28 '19 00:12 peterjmorgan

@Meqolo

Please, can you specify:

  • the OS
  • the dependencies: CURL

souaremsaidou avatar Jun 13 '20 11:06 souaremsaidou