Building examples/cpp/helloworld with VS2017, win10

36 views
Skip to first unread message

borya zimka

unread,
Jan 19, 2019, 5:44:33 AM1/19/19
to grpc.io
Hello!
I am trying to build the v1.18.0 helloworld example (superbuild 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 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!


grpc_traceback.txt

Jan Tattermusch

unread,
Feb 20, 2019, 5:48:19 AM2/20/19
to grpc.io
This is what our distribution tests for cmake superbuild are doing and they are passing:

You can probably missing downloading of openssl and using it. The problem is that boringssl doesn't really supporting "installing", and an installation of gRPC should
really only depend on pre-installed dependency libraries - hence the need to use OpenSSL (boringssl is mostly used when embedding into grpc library and when building from source).
Reply all
Reply to author
Forward
0 new messages