Jan Ehrhardt in gmane.network.ssh.libssh2.devel (Sat, 02 Jan 2016 01:35:57
+0100):
>-- The following features have been disabled:
>
> * Compression , using zlib for compression
Solved: -D"ENABLE_ZLIB_COMPRESSION-1"
> * "none" cipher
OK: option(ENABLE_CRYPT_NONE "Permit \"none\" cipher -- NOT RECOMMENDED")
> * "none" MAC
OK, option(ENABLE_MAC_NONE "Permit \"none\" MAC -- NOT RECOMMMENDED")
> * Logging , Logging of execution with debug trace
Can be turned on:
option(ENABLE_DEBUG_LOGGING "log execution with debug trace"
${DEBUG_LOGGING_DEFAULT})
And the HAVE_SNPRINTF error can be defeated by an sneaky command line
option: -D"HAVE_SNPRINTF:INTERNAL=1"
Final commend line:
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"
-D"ENABLE_DEBUG_LOGGING=1"
-D"HAVE_SNPRINTF:INTERNAL=1"
Output:
-- 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
* Logging , Logging of execution with debug trace
-- 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
The install-dir is 'C:\Program Files (x86)\libssh2' (x86) or 'C:\Program
Files\libssh2' (x64), which is a bit silly, but otherwise it works.
-- Jan _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2016-01-02