Replies: 5 comments
-
otlp_http target will not be built if CURL is not installed. Please install CURL and try again. |
Beta Was this translation helpful? Give feedback.
-
thank you |
Beta Was this translation helpful? Give feedback.
-
Does |
Beta Was this translation helpful? Give feedback.
-
Hello, Yes, it fixed the issue, the opentelemetry_exporter_otlp_http library is now built. |
Beta Was this translation helpful? Give feedback.
-
I am currently trying to build the example_otlp_http project, but this error occurs If someone knows a fix for this issue, please let me know. Thank you |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've been trying to build the otlp_http library in order to run the example_otlp_http example.
I've set up the dependecies needed and followed the opentelemetry build steps presented in repo_path/Install.md ### Building as standalone CMake Project
after i get to repo_path/build and run
cmake -DWITH_OTLP=ON -DWITH_OTLP_HTTP=ON ..
or
cmake ..
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19044.
-- Building for architecture ARCH=x64
-- Found RE2 via CMake.
-- Could NOT find CURL (missing: CURL_LIBRARY) (found version "7.84.0")
-- PROTOBUF_PROTOC_EXECUTABLE=C:/work/vcpkg/installed/x64-windows/tools/protobuf/protoc.exe
-- gRPC_CPP_PLUGIN_EXECUTABLE=C:/work/vcpkg/installed/x64-windows/tools/grpc/grpc_cpp_plugin.exe
Using external nlohmann::json
GTEST_INCLUDE_DIRS =
GTEST_BOTH_LIBRARIES = GTest::gtest;GTest::gtest_main
Building with nostd types...
-- Could NOT find CURL (missing: CURL_LIBRARY) (found version "7.84.0")
-- Could NOT find CURL (missing: CURL_LIBRARY) (found version "7.84.0")
PATH:C:/work/opentelemetry-cpp/examples/grpc/protos:C:/work/opentelemetry-cpp/examples/grpc/protos/messages.proto
-- Could NOT find CURL (missing: CURL_LIBRARY) (found version "7.84.0")
CMake Warning at examples/http/CMakeLists.txt:4 (message):
Skipping http client/server example build: CURL not found
-- Configuring done
-- Generating done
-- Build files have been written to: C:/work/opentelemetry-cpp/build
I try to run the next step either with
cmake --build . --target install
or
cmake --build . --target all_build
but the otlp_http library does not get built, while others are getting built (debug/opentelemetry_protol.lib, ... , examples/..../example_plugin.lib, exporters/...../opentelemetry_exporter_otlp_grpc, ... , sdk/..../opentelemetry_metrics.lib , sdk/..../opentelemetry_version.lib ).
Please help.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions