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

Failed to build #3017

Open
artyomb opened this issue Aug 4, 2024 · 2 comments
Open

Failed to build #3017

artyomb opened this issue Aug 4, 2024 · 2 comments
Labels
bug Something isn't working Stale triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@artyomb
Copy link

artyomb commented Aug 4, 2024

Trying to build the version v1.16.1 on ubuntu 22.04

sudo apt-get install git cmake g++ libcurl4-openssl-dev
sudo apt-get install protobuf-compiler libprotobuf-dev
sudo apt-get install -y libgrpc++-dev libgrpc-dev protobuf-compiler-grpc
git clone --depth 1 --recurse-submodules https://github.com/open-telemetry/opentelemetry-cpp -b v1.16.1
cd opentelemetry-cpp
mkdir -p build && cd build
cmake -DBUILD_TESTING=OFF -DWITH_OTLP_GRPC=ON ..

Got the following error:

-- PROTOBUF_PROTOC_EXECUTABLE=/usr/bin/protoc
-- opentelemetry-proto dependency satisfied by: git submodule
-- gRPC_CPP_PLUGIN_EXECUTABLE=/usr/bin/grpc_cpp_plugin
CMake Error at cmake/opentelemetry-proto.cmake:348 (get_target_property):
  get_target_property() called with non-existent target "gRPC::grpc++".
Call Stack (most recent call first):
  CMakeLists.txt:447 (include)
@artyomb artyomb added the bug Something isn't working label Aug 4, 2024
@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Aug 4, 2024
@owent
Copy link
Member

owent commented Aug 7, 2024

Could you please use ci/setup_grpc.sh to install gRPC, we only support cmake config package now.

@esigo esigo added triage/needs-information Indicates an issue needs more information in order to work on it. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Aug 7, 2024
Copy link

github-actions bot commented Oct 9, 2024

This issue was marked as stale due to lack of activity.

@github-actions github-actions bot added the Stale label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

3 participants