Some one can help me to compile libssh2 on windows with Visual Studio 2017. The only things I found are too old and outdated.
I downloaded libssh2 from github and run cmake libssh2
and then cmake -P cmake_install.cmake
but can't find INSTALL file "libssh2.lib".
And I'm stuck here!
******** Update 1 ***********
Crypto_backend is missing, I trying to compile with openssl and get a lot of unresolved symbols.
******** Update 2 ***********
Ok! I used the cmake-gui and get rid of the unresolved symbols but now I'm having issues with some header files. libssh2 var types are not defined. Some kind of include missing....?
I could compile libssh2 in a Windows 10 environment (I was intrigued).
Environment:
If you request any other crypto backend libraries than WinCNG , I am afraid you need to compile previously that crypto backend library before any attempt to compile libssh2 and make sure CMake find automatically the crypto-backend-library (if not, check for requested cmake variables and fulfill manually).
Steps in cmd to compile libssh2 using WinCNG and dynamic library option:
cd where/you/like/to/install
git clone https://github.com/libssh2/libssh2.git
cd libssh2
mkdir dll <-- directory to install libssh2
cmake -DCRYPTO_BACKEND=WinCNG -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=./dll --build .
cmake --build . --target install
And et voilà, after less than a minute, libssh is created and installed in dll directory.
I hope that this miniguide could help you.