Subject: Re: Problem in compiling libssh2

Re: Problem in compiling libssh2

From: Alexander Lamaison <swish_at_lammy.co.uk>
Date: Thu, 19 May 2016 13:49:09 +0000

On Thu, 19 May 2016 13:27 Moti Avrahami, <moti.dp_at_gmail.com> wrote:

> Seems so, it was solved, thanks.
>
> Anyway, now it still keep telling me about the OpenSSL binding error:
>
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
> (message):
> Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
> system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) (found
> version "0.9.8k")
>
> Call Stack (most recent call first):
> C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
> (_FPHSA_FAILURE_MESSAGE)
> C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/FindOpenSSL.cmake:303
> (find_package_handle_standard_args)
> src/CMakeLists.txt:63 (find_package)
>
> ===============================
>
> As you can see, no matter what I did (described below), it tell me all the
> time that OPENSSL_LIBRARIES is missing:
>
> I defined the following:
> OPENSSL_ROOT_DIR - to the root of folder OpenSSL
> OPENSSL_INCLUDE_DIR - to the include dir with all the .h files
> OPENSSL_LIBRARIES - to the libs folder
> CRYPTO_BACKEND=OpenSSL
>

Is this with the slproweb OpenSSL? I also notice you're using CMake 2.8,
which is pretty ancient. I would suggest using the latest version because
FindOpenSSL.cmake is regularly updated and improved.

Alex

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2016-05-19