Hi,
I meet some questions while trying to build curl on Windows.
According to documents, my steps were:
1. vcvars64.bat
2. cd curl/winbuild
3. nmake -f ./Makefile.vc MACHINE=X64 mode=dll
WITH_DEVEL=/path/to/deps WITH_SSH=dll ....(other parameters)
And my enviromnent was:
OS:
Windows 10.0.22000.527
MSVC compiler from VS2019: 16.11.10
curl:
7.81.0
libssh:
0.9.6
Then I found it couldn't work because 'WITH_SSH' is not a
proper parameter. It seems only support 'WITH_SSH2' but not 'WITH_SSH'.
So I tried to modify the curl/winbuild/Makefile.vc. After
inserting necessary environment variables to file, such as 'USE_LIBSSH' and
'HAVE_LIBSSH_LIBSSH_H', I built it again. But I got a new error:
..\lib\vssh\libssh.c(88): fatal error C1083: cannot open include file:
"unistd.h": No such file or directory
Does it mean curl only support libssh on linux?
Thanks sincerely,
Li
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html