User Tools

Site Tools


c:build:build-libssh2-statically-on-windows-vs2017

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
c:build:build-libssh2-statically-on-windows-vs2017 [2020/06/30 01:17] – [Win32 static debug build with openssl and zlib support] odeftac:build:build-libssh2-statically-on-windows-vs2017 [2020/06/30 01:24] odefta
Line 8: Line 8:
 cd D:\libssh2 \\ \\ cd D:\libssh2 \\ \\
 mkdir out \\ \\ mkdir out \\ \\
 +
 +<code>
 cmake -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=D:/OpenSSL/out/debug -DOPENSSL_LIBRARIES=D:/OpenSSL/out/debug/lib OPENSSL_INCLUDE_DIR=D:/OpenSSL/out/debug/include -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./out -DCRYPTO_BACKEND=OpenSSL -DZLIB_LIBRARY:FILEPATH=D:/zlib/lib/zlib.lib -DZLIB_INCLUDE_DIR:PATH=D:/zlib/include -DENABLE_ZLIB_COMPRESSION=ON ENABLE_DEBUG_LOGGING=ON -Wno-dev -DBUILD_TESTING=OFF --build . \\ cmake -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=D:/OpenSSL/out/debug -DOPENSSL_LIBRARIES=D:/OpenSSL/out/debug/lib OPENSSL_INCLUDE_DIR=D:/OpenSSL/out/debug/include -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./out -DCRYPTO_BACKEND=OpenSSL -DZLIB_LIBRARY:FILEPATH=D:/zlib/lib/zlib.lib -DZLIB_INCLUDE_DIR:PATH=D:/zlib/include -DENABLE_ZLIB_COMPRESSION=ON ENABLE_DEBUG_LOGGING=ON -Wno-dev -DBUILD_TESTING=OFF --build . \\
 +</code>
  
 <code> <code>
Line 35: Line 38:
 </code> </code>
  
 +<code>
 cmake --build . --target install cmake --build . --target install
 +</code>
  
 <code> <code>
Line 256: Line 261:
 {{:c:build:pasted:20200630-011727.png}} {{:c:build:pasted:20200630-011727.png}}
  
 +===== Win32 static release build with openssl and zlib support =====
 +
 +<code>
 +cmake -DCMAKE_BUILD_TYPE=Release -DOPENSSL_ROOT_DIR=D:/OpenSSL/out/release -DOPENSSL_LIBRARIES=D:/OpenSSL/out/release/lib OPENSSL_INCLUDE_DIR=D:/OpenSSL/out/release/include -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./out -DCRYPTO_BACKEND=OpenSSL -DZLIB_LIBRARY:FILEPATH=D:/zlib/lib/zlib.lib -DZLIB_INCLUDE_DIR:PATH=D:/zlib/include -DENABLE_ZLIB_COMPRESSION=ON -Wno-dev -DBUILD_TESTING=OFF --build .
 +</code>
 +
 +<code>
 +-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18363.
 +-- The following features have been enabled:
 +
 + * 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 REQUIRED packages have been found:
 +
 + * OpenSSL
 + * ZLIB
 +
 +-- The following features have been disabled:
 +
 + * Shared library, creating libssh2 as a shared library (.so/.dll)
 + * "none" cipher
 + * "none" MAC
 +
 +-- Configuring done
 +-- Generating done
 +-- Build files have been written to: D:/libssh2
 +</code>
 +
 +<code>
 +cmake --build . --target install
 +</code>
  
  
  
c/build/build-libssh2-statically-on-windows-vs2017.txt · Last modified: 2023/07/04 19:36 by 127.0.0.1