www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: Want to build monolithic libssh2.dll on Windows (preferably Win32 and Win64) but no real success so far

Re: Want to build monolithic libssh2.dll on Windows (preferably Win32 and Win64) but no real success so far

From: Alexander Lamaison <swish_at_lammy.co.uk>
Date: Thu, 03 Nov 2016 18:14:28 +0000

On Thu, 3 Nov 2016, 16:09 Jeroen Wiert Pluimers, <jeroen.pluimers.com+
libssh2.org_at_gmail.com> wrote:

> On Thu, Nov 3, 2016 at 1:36 PM, Alexander Lamaison <swish_at_lammy.co.uk>
> wrote:
>
>
> I notice you tried to link statically against OpenSSL from slproweb. I'm
> not sure they contain static libs for Visual Studio 2015 (or at all), so
> you might need to compile your own. FWIW, I use the hunter package manager
> to compile everything into a monolithic binary:
> https://github.com/ruslo/hunter
>
>
> Thanks.
>
> They slprobweb downloads contain static libs and are in fact recommended
> at the top of the list https://wiki.openssl.org/index.php/Binaries
>

But when you built libssh2 for OpenSSL and passed
OPENSSL_USE_STATIC_LIBS=ON to CMake, it still linked dynamically? If so
that is either a bug in CMake's FindOpenSSL.cmake, or the static libs in
slproweb are not for Visual Studio 2015.

>
> Any steps on how to get started with hunter (not wanting to re-invent the
> wheel again).
>

You just include the huntergate snippet in your root CMakeLists.txt and add
a call to hunter_add_package for each package you use via find_package.
Then run CMake. It will download and install everything. I.e add
hunter_add_package(Libssh2).

_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2016-11-03

the libssh2 team