Compile libcurl on Windows with Visual Studio 2017 and SSL (WinSSL)
1 min readSep 15, 2017
Why
- Integrate libcurl to your applications.
Requirements
- Visual Studio 2017
- Git
Compilation steps
- Open Command Prompt.
- Download curl source code from github
git clone https://github.com/curl/curl.git
- Change directory to curl folder
cd curl
- Checkout stable version
git checkout tags/curl-7_55_1
- Prepare curl for compilation
buildconf.bat
- Prepare Visual Studio 2017 environment variables
“c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\vc\Auxiliary\Build\vcvarsall.bat” x64
- Change directory to winbuild folder
cd winbuild
- Compile (read BUILD.WINDOWS for all options)
nmake /f Makefile.vc mode=dll MACHINE=x64
- Verify curl supports SSL and protocols with SSL
C:\Users\Max\dev\curl\winbuild>..\builds\libcurl-vc-x64-release-dll-ipv6-s
spi-winssl\bin\curl.exe — version
curl 7.55.1-DEV (x86_64-pc-win32) libcurl/7.55.1-DEV WinSSL WinIDN
Release-Date: [unreleased]
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp
smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL
Now you can integrate libcurl with SSL to your applications