open-telemetry / open-telemetry/opentelemetry-cpp

Failed to build

Open
#3,017 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Stale triage/needs-information
Dominant language
C++
Stars
1.4k
Forks
632
Avg merge
1d 13h
Merged PRs (30d)
75

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the v1.16.1 configuration on Ubuntu 22.04 using the listed package and CMake commands. Start with cmake/opentelemetry-proto.cmake at line 348 and the include from CMakeLists.txt line 447, then inspect why gRPC::grpc++ is unavailable. Done means the same configuration completes successfully with WITH_OTLP_GRPC enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, grpc, ubuntu
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.