Guys,

Apparently the instructions for windows in the winbuild\BUILD.WINDOWS.txt do 
not seem to work  for Windows x64 (using latest VS 2017).

Many thanks to Sergei Nikulov, who indicated that he is actually using CMake to 
build the Win32 version - so I concluded why not do the same for Win64.

And that is how I did it in 5 steps:

1. Open a console and navigate to some root working folder (C:\projects\) then  
get latest from github by typing:

    git clone https://github.com/curl/curl.git

    See that curl folder was created.

2. Still on the Console, change directory to the curl top folder 
(C:\projects\curl) and run the CMake command:

   cmake -G "Visual Studio 15 2017 Win64" -B./build -H. 
-DCMAKE_PREFIX_PATH="C:\opt\OpenSSL;C:\lib\libssh2;C:\lib\zlib;C:\lin\"

  Note: The OpenSSL, Libssh2 and zlib should reside in the respective folders 
before running the cmake command.

3. On windows explorer, navigate to the 'build' folder under the top folder 
(C:\projects\curl\build) - locate the solution file 'curl.sln' 
    Right click and open with Visual Studio 2017 Community.
    The solution is open and ready to go - select Build => build solution or 
rebuild solution

    This will build and test the code.

4. installing it to a desired location. I did not run the Install project from 
VS 2017 because it tries to install in onto 'C:\Program Files' which requires 
Administrator rights privileges.

  Instead, go back to console and the build folder (C:\projects\curl\build) and 
ran the cmake command again:

   cmake -DBUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="C:/opt/curl" -P 
cmake_install.cmake

5. I also needed to rename/copy the resultant library to the standard name of 
libcurl.lib
   cd C:\opt\curl\lib
   copy libcurl-d_imp.lib libcurl.lib

That is all.

Needless to say that I was able to use this newly created curl library  in 
another application that I am working on.

I suggest that these 5-steps should be automated somehow in winbuild folder or 
add these steps as an alternative in the BUILD.WINDOWS.txt file underneath it.

Thanks so much to All,

Aharon Tam


-----Original Message-----
From: curl-library [mailto:[email protected]] On Behalf Of 
Sergei Nikulov via curl-library
Sent: Friday, January 26, 2018 6:15 AM
To: libcurl development
Cc: Sergei Nikulov
Subject: Re: Patch: CMake win32 enable SSPI with OpenSSL

2018-01-26 14:01 GMT+03:00 David Weisgerber <[email protected]>:
> I can't test NTLM here but I have a precompiled version of curl here that has 
> the same features with OpenSSL. The only difference is, that it was compiled 
> for mingw. So I guess this is a valid configuration with the automake build 
> chain.
>
> -----Ursprüngliche Nachricht-----
> Von: curl-library [mailto:[email protected]] Im 
> Auftrag von Sergei Nikulov via curl-library
> Gesendet: Freitag, 26. Januar 2018 11:07
> An: libcurl development <[email protected]>
> Cc: Sergei Nikulov <[email protected]>
> Betreff: Re: Patch: CMake win32 enable SSPI with OpenSSL
>
> 2018-01-26 12:25 GMT+03:00 David Weisgerber <[email protected]>:
>> Hi,
>>
>> this is a little patch that changes the CMake behaviour on Win32 
>> regarding SSPI with OpenSSL. It enables me to build curl with the 
>> following features on Win32 with Visual Studio 2015:
>>
>> curl 7.58.0 (Windows) libcurl/7.58.0 OpenSSL/1.0.2n zlib/1.2.11
>> nghttp2/1.22.90
>>
>> Release-Date: 2018-01-24
>>
>> Protocols: http https
>>
>> Features: AsynchDNS IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz
>> HTTP2 HTTPS-proxy
>>
>>
>>
>> Without the patch, SSPI, Kerberos and SPNEGO were disabled when not 
>> using WinSSL.
>>
>>
>>
>> Best regards,
>>
>> David
>
> When it builds it's really cool. But how does curl work after those changes?
>
> I suspect, NTLM backend start working through OpenSSL, despite WinCrypt.
>
> Any testing results for all involved protocols?
>
>>

Could you please don't top-post? Ref:
https://curl.haxx.se/mail/etiquette.html#Do_Not_Top_Post

Per my understanding, it is better to have a more reasonable explanation for 
those changes.

--
Best Regards,
Sergei Nikulov

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to