You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GRPC is installed in a non default location, for example /opt/grpc-1.46.4
In CMake,
gRPC_DIR is set to /opt/grpc-1.46.4/lib/cmake/grpc
During the build:
[email protected]:build-otelcpp-grpc> make
Consolidate compiler generated dependencies of target opentelemetry_proto
[ 0%] Building CXX object CMakeFiles/opentelemetry_proto.dir/generated/third_party/opentelemetry-proto/opentelemetry/proto/collector/trace/v1/trace_service.grpc.pb.cc.o
In file included from /home/malff/CODE/MARC_GITHUB/build-otelcpp-grpc/generated/third_party/opentelemetry-proto/opentelemetry/proto/collector/trace/v1/trace_service.grpc.pb.cc:6:
/home/malff/CODE/MARC_GITHUB/build-otelcpp-grpc/generated/third_party/opentelemetry-proto/opentelemetry/proto/collector/trace/v1/trace_service.grpc.pb.h:25:10: fatal error: 'grpcpp/impl/codegen/async_generic_service.h' file not found
#include <grpcpp/impl/codegen/async_generic_service.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
C++ code is properly generated from protobuf files.
The generated C++ code fails to build, because GRPC headers can not be found, as they are in a non default location, not added in the makefiles.
The generated grpc codes in opentelemetry_proto are splited into opentelemetry_proto_grpc in #2097 .We can not link gRPC::grpc++ into opentelemetry_proto directly on ELF platform, but we can include the INTERFACE_INCLUDE_DIRECTORIES of gRPC::grpc++ in opentelemetry_proto_grpc.
Using the OTLP GRPC exporter.
GRPC is installed in a non default location, for example
/opt/grpc-1.46.4
In CMake,
gRPC_DIR
is set to/opt/grpc-1.46.4/lib/cmake/grpc
During the build:
C++ code is properly generated from protobuf files.
The generated C++ code fails to build, because GRPC headers can not be found, as they are in a non default location, not added in the makefiles.
Suggested fix:
The text was updated successfully, but these errors were encountered: