-
Notifications
You must be signed in to change notification settings - Fork 327
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
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) #409
Comments
|
Hello, we do not ship a copy of zlib because on unices many libraries depend on the system version of zlib and mixing two different versions in one process might cause trouble. The easiest would be to consume prometheus-cpp via the vcpkg package manager where all the dependencies are properly integrated. The other option would be that you compile zlib on your own and give CMake a hint where to find it. If that does not work for you we could take a look at adding zlib to the 3rdparty folder and use it only on Windows. Hope this helps, |
vcpkg is, unfortunately, not possible to use in our case due to organization policy constraints. I suppose building it ourselves is probably doable. Now that I think about it, I suspect we will need to do that anyway to get a build that references static runtime libraries! Hmm, this does not even seem to be supported by zlib cmake configuration by the look of it: madler/zlib#282 Anyway, we will be happy to make use of any enhancements you can do to make it as easy as possible for us to consome prometheus-cpp with zlib support on Windows (e.g. including it in 3rdparty). For now, I think we will try to survive without it just to avoid the hassle. A note in the readme build guide saying that |
Hello, I updated the Readme example to contain Thanks, |
I tried to add zlib in an elegant way. Neither adding it as a submodule nor Sorry, right now I cannot support a convenient drop-in solution. |
Trying to build the library with CMake, following "via CMake" instructions in readme, I get error during
cmake
step:Are the instructions incomplete or am I doing something wrong?
The text was updated successfully, but these errors were encountered: