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: Sun, 22 May 2016 10:34:04 +0300

Hi,

1. This is not slproweb OpenSSL.
2. I upgraded CMake to the latest version - 3.5.2
3. It still doesn't work:

The C compiler identification is MSVC 13.10.3077

Check for working C compiler using: Visual Studio 7 .NET 2003

Check for working C compiler using: Visual Studio 7 .NET 2003 -- works

Detecting C compiler ABI info

Detecting C compiler ABI info - done

CMake Error at
C:/Work/Curl/cmake/cmake-3.5.2-win32-x86/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148
(message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES)
Call Stack (most recent call first):
C:/Work/Curl/cmake/cmake-3.5.2-win32-x86/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388
(_FPHSA_FAILURE_MESSAGE)
C:/Work/Curl/cmake/cmake-3.5.2-win32-x86/share/cmake-3.5/Modules/FindOpenSSL.cmake:370
(find_package_handle_standard_args)
src/CMakeLists.txt:63 (find_package)

Configuring incomplete, errors occurred!

See also
"C:/Work/Curl/cmake/cmake-3.5.2-win32-x86/bin/CMakeFiles/CMakeOutput.log".

Other ideas?

Many thanks again.

On Thu, May 19, 2016 at 4:49 PM, Alexander Lamaison <swish_at_lammy.co.uk>
wrote:

>
>
> 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
>
>

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

the libssh2 team