Subject: Re: Removing non-CMake windows support (was Re: problems building under Windows)

Re: Removing non-CMake windows support (was Re: problems building under Windows)

From: Jan Ehrhardt <phpdev_at_ehrhardt.nl>
Date: Sat, 02 Jan 2016 06:52:02 +0100

Jan Ehrhardt in gmane.network.ssh.libssh2.devel (Sat, 02 Jan 2016 01:35:57
+0100):
>But the same trick for Zlib did not work:
>-D"ZLIB_ROOT=/php-sdk/win64build.vc14"

Found the solution:
-D"ENABLE_ZLIB_COMPRESSION=1" -D"ZLIB_ROOT=/php-sdk/win32build.vc14"

This one keeps annoying:

>Moreover CMake falsely #undef's HAVE_SNPRINTF in VC14. VC14 aka VS2015
>does have a snprintf, so you will have to manually add #define
>HAVE_SNPRINTF to libssh2_config.h

But most of it works now:

CMake -G"Visual Studio 14 2015" -D"BUILD_SHARED_LIBS=1"
    -D"OPENSSL_ROOT_DIR=/php-sdk/win32build.vc14"
    -D"ENABLE_ZLIB_COMPRESSION=1" -D"ZLIB_ROOT=/php-sdk/win32build.vc14"

leads to

-- The following features have been enabled:

 * Shared library , creating libssh2 as a shared library (.so/.dll)
 * Compression , using zlib for compression
 * diffie-hellman-group-exchange-sha1 ,
     "new" diffie-hellman-group-exchange-sha1 method

-- The following OPTIONAL packages have been found:

 * OpenSSL

-- The following REQUIRED packages have been found:

 * ZLIB

-- The following features have been disabled:

 * "none" cipher
 * "none" MAC
 * Logging , Logging of execution with debug trace

-- 
Jan
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2016-01-02