albertino80.github.io

Building libcurl 7.58.0 on windows

Development environment

My dev root is c:\dev_gcc\ - I know, we are not using gcc ;)

Activeperl installation

Download and run Windows Installer (EXE), remeber to add perl.exe to PATH system variable

Nasm installation

CMake installation

Download and run Windows win64-x64 Installer

Libcurl libaries dependencies:

Dependency graph

ZLIB 1.2.11

https://www.zlib.net/

Note:

To use zlibwapi.dll in your application, you must define the macro ZLIB_WINAPI when compiling your application’s source files.

OPENSSL 1.1.0g

https://www.openssl.org/source/

set PATH=C:\dev_gcc\curltut\x64\bin\zlib;%PATH%

cd curltut\openssl-1.1.0g

perl Configure VC-WIN64A-masm zlib --openssldir=c:\dev_gcc\curltut\x64\bin\openssl --prefix=c:\dev_gcc\curltut\x64\bin\openssl --with-zlib-include=C:\dev_gcc\curltut\zlib-1.2.11 --with-zlib-lib=C:\dev_gcc\curltut\x64\bin\zlib\zlibwapi.lib

nmake clean

nmake

nmake test

nmake install

libssh2 1.8.0

https://www.libssh2.org/

nghttp2 1.30.0

libcurl 7.58.0

https://curl.haxx.se/download.html

Notes

during building if there is an error about missing stdio.h use command ridestina progetti on solution root, select your last windows SDK available