[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help building ssh.dll on Windows.



zlib can be disabled by passing '-DWITH_ZLIB=No' to CMake.

OpenSSL is better built and installed manually (in my opinion)

The best guide for building on Windows is here: http://www.ski-epic.com/2007_notes_on_openssl/index.html Once you 'make' and 'make install' OpenSSL, you'll have a path for the OpenSSL library (libeay32.lib) and the include directory.

Pass the location of these parameters to CMake using the 'OPENSSL_INCLUDE_DIRS' and 'OPENSSL_LIBRARIES' parameters.

A simple example of invoking cmake via python:

    params.append("cmake")
    params.append("-DWITH_STATIC_LIB=Yes")
    params.append("-DWITH_ZLIB=No")
    params.append("-DCMAKE_CONFIGURATION_TYPES=%s"%(buildMode))
    params.append("-DOPENSSL_LIBRARIES=%s"%(opensslLib))
    params.append("-DOPENSSL_INCLUDE_DIRS=%s"%(opensslIncDir))
    params.append("-DCMAKE_INSTALL_PREFIX=%s"%(deployDir))

On 08/22/2012 03:57 PM, Zeldin, Boris wrote:
Hi,
I am trying to build ssh.dll on Windows.
The make system needs Libraries and include files for ZLIB and Open SSL.
Libraries for ZLIB and OpenSSL can be found in many places.  For example,
_http://slproweb.com/products/Win32OpenSSL.html_
However, include files are missing for both of them.
Please send me a link to the project to download include files for those projects (ZLIB and OpenSSL). (Unless these include files are not needed and the variable ZLIB_INCLUDE_DIR can be set to an arbitrary value).
Also, the build system requires NSIS:
set(_NSIS_ROOT_PATHS
    C:/NSIS/Bin
    "$ENV{PROGRAMFILES}/NSIS"
)
find_program(NSIS_MAKE
    NAMES
        makensis
    PATHS
        ${NSIS_ROOT_PATH}
        ${NSIS_ROOT_PATH}/Bin
        ${_NSIS_ROOT_PATHS}
)
Do you have any suggestions where to obtain this software?
Thank you for help
Boris Zeldin
EMC Corp


References:
Help building ssh.dll on Windows."Zeldin, Boris" <boris.zeldin@xxxxxxx>
Archive administrator: postmaster@lists.cynapses.org