open-telemetry / open-telemetry/opentelemetry-cpp
Unable to workable Windows DLL with v1.23.0
Open
@ThomsonTan is already working on this.
Since Dec 1, 2025.
bug
do-not-stale
triage/accepted
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 632
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 75
Description
Describe your environment
Windows CMake (4.1.1)
Steps to reproduce
cmake -G "Visual Studio 17 2022" -Dprotobuf_ABSL_PROVIDER=package -DOPENTELEMETRY_BUILD_DLL=1 \
-DWITH_OTLP_GRPC=ON -DOPENTELEMETRY_INSTALL=ON \
-DWITH_OTLP_HTTP=ON -DWITH_OTLP_HTTP_COMPRESSION=ON \
-DWITH_EXAMPLES_HTTP=OFF -DWITH_OTLP_HTTP_SSL_PREVIEW=ON \
-DWITH_OTLP_HTTP_SSL_TLS_PREVIEW=ON -DgRPC_ABSL_PROVIDER=package \
-DgRPC_PROTOBUF_PROVIDER=package -DABSL_PROPAGATE_CXX_STD=ON \
-DWITH_EXAMPLES=OFF -DgRPC_PROVIDER=package -DCMAKE_CXX_FLAGS="/std:c++17 /EHsc" \
-DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD_REQUIRED=ON \
-DCMAKE_CXX_EXTENSIONS=OFF -DBUILD_SHARED_LIBS=ON \
-DCMAKE_PREFIX_PATH="W:\vcpkg\packages\;W:\vcpkg\installed\x64-windows" \
-DWITH_DEPRECATED_SDK_FACTORY=OFF -DCMAKE_POLICY_VERSION_MINIMUM="3.5" \
-DWITH_BENCHMARK=OFF -DWITH_FUNC_TESTS=OFF -DBUILD_TESTING=OFF \
-DOPENSSL_ROOT_DIR="W:\vcpkg\packages\openssl_x64-windows" \
-DOPENSSL_USE_STATIC_LIBS=TRUE ..
DLL is output but seems to be missing the OtlpGrpcExporter?
What is the expected behavior?
That the OTLP exporter would be included in the DLL
What is the actual behavior?
Additional context
Unsure if I'm missing a cmake flag that is required.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.