CMake gui构建libcurl,MTD/MT,支持openssl

我用的是VS2022,构建的是x86版本,Cmake gui重要的entry设置如下:

CURL_ENABLE_SSL on

CURL_USE_OPENSSL on

OPENSSL_ROOT_DIR PATH类型 设置openssl的路径

CMAKE_MSVC_RUNTIME_LIBRARY string MultiThreaded\<<CONFIG:Debug>:Debug

ENABLE_IPV6 on

CURL_DIABLE_LDAP on

CURL_DIABLE_LDAPs on

CURL_USE_LIBPSL off

CURL_ZLIB off

openssl win32 installer 下载路径:

https://slproweb.com/products/Win32OpenSSL.html

注意这个:MultiThreaded\<<CONFIG:Debug>:Debug,设置后,生成libcurl的debug版本就是/MTd,release版就是/MT,openssl的lib文件因为没有运行时信息,所以不必考虑链接时openssl的运行时是否匹配。

相关推荐
Lsetea1 天前
OpenSSL verify报unable to get issuer certificate:error 2与partial_chain排查
linux·https·ssl证书·openssl·证书链
Lsetea2 天前
OpenSSL verify报unhandled critical extension:error 34与关键扩展排查
运维·https·ssl证书·openssl·证书链
Lsetea2 天前
OpenSSL verify报CA certificate key too weak:auth_level与弱密钥链排查
运维·https·ssl证书·openssl·证书链
Lsetea4 天前
OpenSSL verify报invalid CA certificate:basicConstraints与keyCertSign排查
运维·https·ssl证书·openssl·证书链
Lsetea5 天前
OpenSSL verify报error 62:证书主机名不匹配与-verify_hostname排查
运维·https·ssl证书·openssl·san
Lsetea5 天前
OpenSSL verify报certificate signature failure:error 7与证书签名排查
运维·https·ssl证书·openssl·证书链
Lsetea7 天前
curl指定CA目录仍报证书不受信任:--capath与OpenSSL rehash排查
运维·https·ssl·openssl·curl
Lsetea7 天前
OpenSSL报path length constraint exceeded:CA层级与pathlen排查
运维·https·ssl证书·openssl·证书链
Lsetea7 天前
OpenSSL s_client退出码为0却证书验证失败:严格校验与Shell管道排查
https·shell·ssl证书·openssl·tls
Lsetea7 天前
OpenSSL报permitted subtree violation:证书SAN与CA名称约束排查
运维·https·ssl证书·openssl·证书链