Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling cpp helloworld example #17576

Closed
dsazonoff opened this issue Dec 21, 2018 · 1 comment
Closed

Error compiling cpp helloworld example #17576

dsazonoff opened this issue Dec 21, 2018 · 1 comment

Comments

@dsazonoff
Copy link

dsazonoff commented Dec 21, 2018

What version of gRPC and what language are you using?

Latest master, or v1.16.1 or bae61a0

What operating system (Linux, Windows, …) and version?

Windows

What runtime / compiler are you using (e.g. python version or version of gcc)

Visual Studio 2017

What did you do?

cd /grpc/examples/cpp/helloworld/cmake_externalproject/
md .build
cd .build
cmake .. -G "Visual Studio 15 2017 Win64"

Now I'm trying to compile HelloWorld-SuperBuild.sln in debug or release mode. It fails.

What did you expect to see?

Successfull build

What did you see instead?

4>CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
4>  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
4>  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
4>  OPENSSL_INCLUDE_DIR)
4>Call Stack (most recent call first):
4>  C:/Program Files/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
4>  C:/Program Files/CMake/share/cmake-3.12/Modules/FindOpenSSL.cmake:412 (find_package_handle_standard_args)
4>  cmake/ssl.cmake:45 (find_package)
4>  CMakeLists.txt:141 (include)

Anything else we should know about your project / environment?

Is it necessary to use OpenSSL to build gRPC? Or is it possible to use boringssl and somehow keep gRPC_INSTALL=TRUE?

In case of using boringssl there is a next error:

6>CMake Error at cmake_externalproject/.build/grpc/lib/cmake/grpc/gRPCConfig.cmake:14 (include):
6>-- Using gRPC 1.18.0-dev
6>  include could not find load file:
X:/grpc/examples/cpp/helloworld/cmake_externalproject/.build/grpc/lib/cmake/grpc/gRPCTargets.cmake
6>Call Stack (most recent call first):
6>  CMakeLists.txt:73 (find_package)

This issue looks similar with #10759 #16741 #11378

@dsazonoff
Copy link
Author

Everything is OK, when building with OpenSSL instead of boringssl.
Could someone fix helloworld/cmake_externalproject to be compilable with boringssl?

@lock lock bot locked as resolved and limited conversation to collaborators Mar 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant