openssl编译
win32:
perl Configure no-shared VC-WIN32 --prefix=E:/lib/openssl-1.1.1
linux:
./config -fPIC no-shared --prefix=/home/xx/code/lib/openssl-1.1.1
make
make install
zlib编译简单
libcurl编译
win32:
nmake /f Makefile.vc mode=static VC=9 WITH_SSL=static WITH_ZLIB=static ENABLE_IDN=no ENABLE_SSPI=no SSL_PATH=E:\lib\openssl-1.1.1 ZLIB_PATH=E:\lib\zlib-1.2.11
linux:
./configure --disable-shared --disable-ldap --disable-ldaps --with-ssl=/home/xx/code/lib/openssl-1.1.1 --with-zlib=/home/xx/code/lib/zlib-1.2.11
工程链接:
win32
宏添加:CURL_STATICLIB,igone special library添加上 LIBCMD.lib(release为LIBCMT.lib),添加上静态库路径并包含静态文件 libcurl.lib libssl.lib libcrypto.lib zlib.lib ws2_32.lib Wldap32.lib
linux:
编译包含头文件路径,及连接路径需要添加库:-lcurl -lssl -lcrypto -lz
nmake /f Makefile.vc mode=static VC=9 WITH_SSL=static WITH_ZLIB=static ENABLE_IDN=no ENABLE_SSPI=no SSL_PATH=E:\lib\openssl-1.1.1 ZLIB_PATH=E:\lib\zlib-1.2.11