-
Notifications
You must be signed in to change notification settings - Fork 29
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
README: update 'libcurl on Windows' section #87
Comments
See: curl on Windows. The |
IMO we can just create normal package with Conan and drop support for so strange way to deliver Curl on Windows |
Excellent idea! Definitely willing to merge (unfortunately I have no Windows environment for testing anymore. But I guess we find somebody who has). |
Ok. Locally I just wrote conanfile.py. Quality is a little bit prototypish :) I use libcurl from from Conan. Can I also switch to rapidxml from Conan instead of built-in one? Another annoying issue - there are no options in current version of CMakeLists to disable building examples and/or tests. |
That won't work I guess. The build in one is heavily patched to support (to some extend) XML namespaces.
Good point. I created a ticket #147 for this. (And as always, PRs always welcome 😄 ) |
Btw, which libcurl version is required? Cannot find libcurl which will compile successfully with ews-cpp on Fedora 30 (trying different versions with Conan). Every time get smth like this:
|
7.29 is required. Your version is absolutely fine. The issue you have is that you don't have the feature test macros enabled for you build. In this case the error might go away if you manually define #define EWS_HAS_VARIADIC_TEMPLATES 1 before including ews.hpp header. Take a look at the feature test macros in CMakeLists.txt to see all tests. Note that you don't need to use CMake to build your project. You can record the results of the CMake tests and then manually define the macros for your compiler/standard library in an intermediate header file. Something like #ifndef _WIN32
#define EWS_HAS_VARIADIC_TEMPLATES 1
#endif
#ifndef NDEBUG
#define EWS_DISABLE_TLS_CERT_VERIFICATION 1
#endif
// and so on… now include ews.hpp
#include "ews/ews.hpp"
#include "ews/ews_version.hpp" |
One can easily build libcurl on Windows from source (with https://gitlab.com/benjamin.kircher/curl-winbuild for example) and I believe a recent Windows 10 comes now with curl bundled (no idea about libcurl, though).
Investigate and update README.md accordingly.
The text was updated successfully, but these errors were encountered: