Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
About building curl with libssh on Windows by MSVC
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: �����޺� via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 25 Feb 2022 20:19:59 +0800
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
�
Date: Fri, 25 Feb 2022 20:19:59 +0800
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 �Received on 2022-02-25