grpc++ library is not created by Bazel build. How to make it?

29 views
Skip to first unread message

Konstantin

unread,
Jan 16, 2022, 10:05:27 PM1/16/22
to grpc.io

I clone https://github.com/grpc/grpc and try to build gRPC++ library with Bazel like this: "bazel build :grpc++"

There are no build errors, but I get: "Target //:grpc++ up-to-date (nothing to build)" and the library artifact is not produced. I tracked it down  to grpc_cc_library(name = "grpc++",  ...) which does not specify any srcs and as the result the header only library produces no binary file.

I searched and could not find any guidance on how grpc++.lib or libgrpc++.so supposed to be built with Bazel. Any help?

Thank you!

Konstantin

veb...@google.com

unread,
May 26, 2022, 4:58:41 PM5/26/22
to grpc.io
Bazel isn't designed to get library artifacts. Although there should be lib and so files with bazel build, it's supposed to be used like defining your app or lib that likes to use gRPC as a bazel target and adding gRPC to its dependency.
If you just want to grab lib or so files, probably using cmake would make more sense.

Reply all
Reply to author
Forward
0 new messages