Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing: CURL_LIBRARY CURL_INCLUDE_DIR #13

Closed
chrisnhans opened this issue Sep 17, 2014 · 10 comments
Closed

missing: CURL_LIBRARY CURL_INCLUDE_DIR #13

chrisnhans opened this issue Sep 17, 2014 · 10 comments

Comments

@chrisnhans
Copy link

I'm new to curl, I hope anyone could help to solve this
I have installed curl from http://www.confusedbycode.com/curl/
when I'm trying cmake for visual studio v12 2013..I'm getting following error

missing: CURL_LIBRARY CURL_INCLUDE_DIR

This is the cmake log:
The C compiler identification is MSVC 18.0.30723.0
The CXX compiler identification is MSVC 18.0.30723.0
Check for working C compiler using: Visual Studio 12 2013 Win64
Check for working C compiler using: Visual Studio 12 2013 Win64 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 12 2013 Win64
Check for working CXX compiler using: Visual Studio 12 2013 Win64 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (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.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/FindCURL.cmake:61 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:7 (FIND_PACKAGE)

Configuring incomplete, errors occurred!

@GabrieleFrau
Copy link

The error is self explanatory: you're missing libcurl*-dev

@chrisnhans
Copy link
Author

Thanks for your responce. I'm on windows, I couldn't find libcurl for windows

@GabrieleFrau
Copy link

http://curl.haxx.se/dlwiz/?type=devel&os=Win32&flav=MSVC this should do
EDIT: it seems all mirrors are down http://curl.haxx.se/download/curl-7.38.0.zip the generic package should work.

@chrisnhans
Copy link
Author

I already have that package...I'm still getting that error

@GabrieleFrau
Copy link

Did you run the INSTALL project? If yes, the only thing that comes to mind is setting CURL_ROOT to the library folder, although i've never had problems of this sort on windows.
Of course setting CURL_LIBRARY CURL_INCLUDE_DIR should work as well.

@chrisnhans
Copy link
Author

Sorry, I'm new to the CURL, I didn't run INSTALL project. I wonder how to do that.

@GabrieleFrau
Copy link

curl also uses CMake so the steps are likely the same as curlcpp

  1. Run CMake and select the curl folder as source
  2. Create a new folder for the build
  3. Configure the project for visual studio
  4. Generate the project
  5. Run visual studio and build the INSTALL project, it will install curl in something like c:\programfiles (x86)\curl
  6. Now try configuring curlcpp and CMake should be able to find curl.

@2c2c
Copy link

2c2c commented Sep 17, 2014

I just want to point out that VS2013 doesn't support noexcept, so you're going to have no luck with curlcpp

@GabrieleFrau
Copy link

@2c2c is right. This is what VS2014 CTP adds regarding noexcept

Completed noexcept: You can check whether an expression will throw an exception by using the noexcept operator. For example, noexcept(func()) will return "true" if func was specified as noexcept.

Funnily enough

The noexcept operator may fail in scenarios that are involving complex templates.

So you can either change compiler or wait for the next visual studio to fix more than 3 years old implementations :)

@chrisnhans
Copy link
Author

Thanks for the info, but I'm still left with errors :-(

CMake Error at CMakeLists.txt:44 (include):
include could not find load file:

Macros

The C compiler identification is MSVC 18.0.30723.0
Check for working C compiler using: Visual Studio 12 Win64
Check for working C compiler using: Visual Studio 12 Win64 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
CMake Warning at CMakeLists.txt:48 (message):
the curl cmake build system is poorly maintained. Be aware

curl version=[7.38.0]
CMake Error at CMakeLists.txt:207 (check_library_exists_concat):
Unknown CMake command "check_library_exists_concat".

Configuring incomplete, errors occurred!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants