curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Problems migrating to cmake - errors trying to build a static library

From: Robert J. Simpson via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 19 May 2025 10:15:29 +0100

Hi,

I've been using the curl library for a while. I currently add it as a
dependency in an MSVC project where it is listed as an 'Additional
dependency':

\curl\builds\libcurl-vc-x64-debug-static-ipv6-sspi-schannel\lib\libcurl_a_debug.lib


I'd like to update the library but the docs say I should be moving to
using cmake, which I'm not familiar with.

I've had a few attempts to run cmake but I keep running into errors and
I don't understand what I should be doing to fix them e.g.

-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find Brotli (missing: BROTLI_INCLUDE_DIR BROTLIDEC_LIBRARY
BROTLICOMMON_LIBRARY)
-- Could NOT find Zstd (missing: ZSTD_INCLUDE_DIR ZSTD_LIBRARY)
-- Could NOT find NGHTTP2 (missing: NGHTTP2_INCLUDE_DIR NGHTTP2_LIBRARY)
-- Could NOT find Libidn2 (missing: LIBIDN2_INCLUDE_DIR LIBIDN2_LIBRARY)

I didn't have any of these issues with nmake.

I'm probably not using cmake correctly and making some basic mistakes.
Does anyone have an example cmake command which I could use to
regenerate the
libcurl-vc-x64-debug-static-ipv6-sspi-schannel\lib\libcurl_a_debug.lib
library?

Thanks,

Rob

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2025-05-19