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

Re: help needed compiling libssh with msvc


On Tuesday 07 February 2012 19:19:36 you wrote:
> So I've successfully built, tested, and 'installed' openssl to
> c:\source-simon\openssl-build. So far so good.
> 
> I then cd into c:\source-simon\libssh-build and run cmake-gui and
> configure the following:
> - Where is the source code: C:/source-simon/libssh
> - Where to build the binaries: C:/source-simon/libssh-build
> - OPENSSL_INCLUDE_DIR: C:/source-simon/openssl-build/include
> - Uncheck 'WITH_GCRYPT'
> - Uncheck 'WITH_ZLIB' (for the time being)
> 
> When I click on 'Configure' then I get:
> 
> Could NOT find OpenSSL (missing:  OPENSSL_LIBRARIES)
> Could NOT find GCrypt, try to set the path to GCrypt root folder in
> the system variable GCRYPT_ROOT_DIR (missing:  GCRYPT_INCLUDE_DIR
> GCRYPT_LIBRARIES)
> CMake Error at CMakeLists.txt:61 (message):
>   Could not find OpenSSL or GCrypt
> Configuring incomplete, errors occurred!
> 
> What is it still asking for GCrypt even though I unchecked it? I
> understand that either openssl *or* libgcrypt in necessary, or?
> 
> Here's what my folders look like:
> 
> c:\>tree source-simon
> C:\SOURCE-SIMON
> ├───libssh
> │   ├───build
> │   ├───cmake
> │   │   └───Modules
> │   ├───CMakeFiles
> │   │   └───CMakeTmp
> │   │       ├───CMakeFiles
> │   │       ├───cmTryCompileExec.dir
> │   │       │   └───Debug
> │   │       └───Debug
> │   ├───doc
> │   ├───examples
> │   ├───include
> │   │   └───libssh
> │   ├───src
> │   │   └───threads
> │   └───tests
> │       ├───benchmarks
> │       ├───client
> │       ├───sftp_stress
> │       └───unittests
> ├───libssh-build
> │   └───CMakeFiles
> │       └───CMakeTmp
> │           ├───CMakeFiles
> │           ├───cmTryCompileExec.dir
> │           │   └───Debug
> │           └───Debug
> ├───openssl-0.9.8t
> ...
> └───openssl-build
>     ├───bin
>     ├───include
>     │   └───openssl
>     └───lib
> 
> I've tried creating OPENSSL_LIBRARIES and/or OPENSSL_LIBRARY but I get
> the same errors.
> 
> I have MSVC Prof 10 installed on a 64bit Windows 2008 R2 Standard.
> I've tried selecting both 'Current Generator: Visual Studio 10' and
> 'Current Generator: Visual Studio 10 Win64'. But same error.
> 
> Please help!

Set OPENSSL_ROOT_DIR to C:\SOURCE-SIMON\openssl-build


Cheers,


	-- andreas

-- 
Andreas Schneider                   GPG-ID: F33E3FC6
www.cryptomilk.org                asn@xxxxxxxxxxxxxx

Follow-Ups:
Re: help needed compiling libssh with msvcSimon <simonhf@xxxxxxxxx>
References:
help needed compiling libssh with msvcSimon <simonhf@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org