Hello!
I am trying to build the v1.18.0 helloworld example (superbuild
<https://github.com/grpc/grpc/blob/master/examples/cpp/helloworld/cmake_externalproject/CMakeLists.txt>version)
using VS2017 at Windows10.
Build fails with message "Could NOT find OpenSSL, try to set the path to
OpenSSL root folder in the system variable OPENSSL_ROOT_DIR", full
traceback is in the .txt.
I have tried to set OPENSSL_ROOT_DIR to "grpc/third_party/boringssl" or
"grpc/third_party/boringssl/include", but this haven't helped.
Using this guide <https://github.com/grpc/grpc/blob/master/BUILDING.md> I
have managed to build grpc itself (with warning 'gRPC_INSTALL will be
forced to FALSE because gRPC_ZLIB_PROVIDER is "module"', but no errors). I
used "Visual Studio 15" generator, not Ninja (not sure if it matters). But
I think it means that all necessary dependencies are actually available,
just not found by cmake.
Any hints how can this example be build (perhaps not with boringssl) would
be very helpful!
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/35f637a5-f661-4968-8b42-b4db14eb1d6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
>------ Build started: Project: CMakeLists, Configuration: Debug ------
[1/12] cmd.exe /C "cd /D
C:\Users\zimka\CMakeBuilds\10d9ceac-2c27-ed3d-9e7e-5279a039ec66\build\x86-Debug\grpc\src\grpc-build
&& "C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
-CC:/Users/zimka/CMakeBuilds/10d9ceac-2c27-ed3d-9e7e-5279a039ec66/build/x86-Debug/grpc/tmp/grpc-cache-Debug.cmake
-GNinja
C:/Users/zimka/dev/grpc_example/grpc/examples/cpp/helloworld/cmake_externalproject/../../../..
&& "C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
-E touch
C:/Users/zimka/CMakeBuilds/10d9ceac-2c27-ed3d-9e7e-5279a039ec66/build/x86-Debug/grpc/src/grpc-stamp/grpc-configure"
FAILED: grpc/src/grpc-stamp/grpc-configure
cmd.exe /C "cd /D
C:\Users\zimka\CMakeBuilds\10d9ceac-2c27-ed3d-9e7e-5279a039ec66\build\x86-Debug\grpc\src\grpc-build
&& "C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
-CC:/Users/zimka/CMakeBuilds/10d9ceac-2c27-ed3d-9e7e-5279a039ec66/build/x86-Debug/grpc/tmp/grpc-cache-Debug.cmake
-GNinja
C:/Users/zimka/dev/grpc_example/grpc/examples/cpp/helloworld/cmake_externalproject/../../../..
&& "C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
-E touch
C:/Users/zimka/CMakeBuilds/10d9ceac-2c27-ed3d-9e7e-5279a039ec66/build/x86-Debug/grpc/src/grpc-stamp/grpc-configure"
loading initial cache file
C:/Users/zimka/CMakeBuilds/10d9ceac-2c27-ed3d-9e7e-5279a039ec66/build/x86-Debug/grpc/tmp/grpc-cache-Debug.cmake
CMake Warning (dev) at cmake/zlib.cmake:42 (find_package):
Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
CMake variable ZLIB_ROOT is set to:
C:/Users/zimka/CMakeBuilds/10d9ceac-2c27-ed3d-9e7e-5279a039ec66/build/x86-Debug/zlib
For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
CMakeLists.txt:138 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137
(message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY)
Call Stack (most recent call first):
C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378
(_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/FindOpenSSL.cmake:412
(find_package_handle_standard_args)
cmake/ssl.cmake:45 (find_package)
CMakeLists.txt:141 (include)
-- Configuring incomplete, errors occurred!
See also
"C:/Users/zimka/CMakeBuilds/10d9ceac-2c27-ed3d-9e7e-5279a039ec66/build/x86-Debug/grpc/src/grpc-build/CMakeFiles/CMakeOutput.log".
ninja: build stopped: subcommand failed.
Build failed.