www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: Problem in compiling libssh2

Re: Problem in compiling libssh2

From: Moti Avrahami <moti.dp_at_gmail.com>
Date: Thu, 19 May 2016 15:25:54 +0300

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

I tried it with both OpenSSL version 0.9.8k and 1.0.0 but it doesn't work.

I tried to clean the bin folder several times.

Is there something that I missed?

Thanks,

On Wed, May 18, 2016 at 8:30 PM, Alexander Lamaison <swish_at_lammy.co.uk>
wrote:

>
>
> On Wed, 18 May 2016 14:21 Moti Avrahami, <moti.dp_at_gmail.com> wrote:
>
>> I tried it, but it told me:
>> CMake Error: The source "C:/Workspace/V5.5/libssh2-1.7.0/CMakeLists.txt"
>> does not match the source
>> "C:/Workspace/V5.5/libssh2-1.7.0/src/CMakeLists.txt" used to generate
>> cache. Re-run cmake with a different source directory.
>>
>> There were indeed 2 different versions CMakeLists.txt but even after
>> making them the same, I got the same error above.
>>
>
> Use a clean binary directory. It's messed up from the previous attempt.
>
> Alex
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
>

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

the libssh2 team