I would like to report my experience building SSH on Windows.
1. It is important to have the right version of OpenSSL installed. By chance I
had previous version 0.9.8h on my machine. Its include and lib files do not
compile.
2. The Prebuilt ZLIB library for versions 1.2.5 and 1.2.7 does not work
(http://www.winimage.com/zLibDll/zlib125dll.zip)
Linker complains on missing symbols. I had to compile LIBSSH against ZLIB
version 1.2.3
(http://gnuwin32.sourceforge.net/packages/zlib.htm)
At the same time, I had to overwrite include files of v 1.2.3 with include
files of v.1.2.5
After resolving issues with the external libraries, the build proceeds
effortlessly.
Also, I think that libssh.org should put a distributable pre-built version of
the Windows library. The current library posted on the website cannot be
distributed to the end users. It contains a reference to the non-distributable
library MSVCR100D.DLL.
Thanks
Boris Zeldin
EMC Corp
-----Original Message-----
From: Zeldin, Boris
Sent: Thursday, August 23, 2012 3:04 PM
To: '[email protected]'
Subject: RE: Building ssh on Windows
After reinstalling OpenSSL and fixing my registry, I was able to fix most of
the build problem.
Still my build complains on missing symbols related to ZLIB
1>gzip.obj : error LNK2019: unresolved external symbol _deflate referenced in
function _gzip_compress
1>gzip.obj : error LNK2019: unresolved external symbol _deflateInit_ referenced
in function _initcompress
1>gzip.obj : error LNK2019: unresolved external symbol _inflate referenced in
function _gzip_decompress
1>gzip.obj : error LNK2019: unresolved external symbol _inflateInit_ referenced
in function _initdecompress
1>wrapper.obj : error LNK2019: unresolved external symbol _inflateEnd
referenced in function _crypto_free
1>wrapper.obj : error LNK2019: unresolved external symbol _deflateEnd
referenced in function _crypto_free
Any suggestion will be greatly appreciated.
Thanks
Boris Zeldin
EMC Corp
-----Original Message-----
From: Andreas Schneider [mailto:[email protected]]
Sent: Thursday, August 23, 2012 4:10 AM
To: [email protected]
Subject: Re: Building ssh on Windows
On Wednesday 22 August 2012 15:08:52 you wrote:
> I am struggling to build ssh library for Windows
> Are there instructions how to set and to run cmake to build ssh library.
I download zlib and ssl from here:
http://www.winimage.com/zLibDll/
http://www.winimage.com/zLibDll/zlib125dll.zip
http://slproweb.com/products/Win32OpenSSL.html
http://slproweb.com/download/Win32OpenSSL-1_0_1c.exe
I install them both in C:\Program Files
Then I start cmake, select Visual Studio or MinGW and click on configure.
OpenSSL and ZLIB are automatically found.
Then I call make or click on compile in VS. I'm not a Windows user but it
can't be easier. I wonder what all you guys are doing to not get it working.
-- andreas
--
Andreas Schneider GPG-ID: F33E3FC6
www.cryptomilk.org [email protected]