-
We are using the pubsub client library to send messages from a C++ application to pubsub topics in GCP and the functionality is working as expected. My question is about the build process. We use cmake and would like to build only the pubsub client library as that's the only service we use. However looking at the build logs it seems like it's building and installing a lot more than that e.g. bigtable, bigquery, dialogflow etc. even though we have enabled the
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hey, what you are doing with I think you may be running into #8022, which is a known issue. Basically the protos for a bunch of libraries are built, even when the client libraries are not enabled. I used your command in this Dockerfile to reproduce the problem. Then I squinted at the output of building the Dockerfile. I see it builds targets like So, obviously it is not great, that you are building extra protos at this time. But at least you know that you are doing the right thing. Also, thank you for opening up this discussion. It helps us prioritize what issues we should work on next. |
Beta Was this translation helpful? Give feedback.
-
Hi Darren, You are right. Most of the libraries out of 74 (except If you don't mind could you also please tell briefly what's difference between the real library and its protos version e.g. Regards, |
Beta Was this translation helpful? Give feedback.
-
FWIW, we fixed #8022 in the latest release. You can now build Pub/Sub without having to build the protos from Bigtable, BigQuery, etc. |
Beta Was this translation helpful? Give feedback.
Hey, what you are doing with
-DGOOGLE_CLOUD_CPP_ENABLE=pubsub
looks right to me.I think you may be running into #8022, which is a known issue. Basically the protos for a bunch of libraries are built, even when the client libraries are not enabled.
I used your command in this Dockerfile to reproduce the problem. Then I squinted at the output of building the Dockerfile.
I see it builds targets like
google_cloud_cpp_bigtable_protos
,google_cloud_cpp_cloud_bigquery_protos
, etc. These are just the protos for those libraries. (The actual client libraries aregoogle_cloud_cpp_bigtable
.google_cloud_cpp_bigquery
, etc.).So, obviously it is not great, that you are building extra protos at this ti…