opentelemetry-cpp
opentelemetry-cpp copied to clipboard
Failed to build
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)