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
When building dd-opentracing-cpp on Windows x64 Visual Studio C++ 2022 using the instructions at [1]
I'm encountering the following error: C:\Users\first.last\dd-opentracing-cpp\src\agent_writer.h(4,10): fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory [C:\Users\first.last\dd-opentracing-cpp\.build\dd_opentracing.vcxproj]
I installed vcpkg, cmake, and ran all previous build steps successfully including cmake -DCMAKE_TOOLCHAIN_FILE=%HOMEPATH%\vcpkg\scripts\buildsystems\vcpkg.cmake ..
But the following command is failing: cmake --build . -- -p:Configuration=RelWithDebInfo
when trying to find third party include header files.
Build output:
C:\Users\first.last\dd-opentracing-cpp\.build>cmake --build . -- -p:Configuration=RelWithDebInfo
MSBuild version 17.4.0+18d5aef85 for .NET Framework
1>Checking Build System
Building Custom Rule C:/Users/first.last/dd-opentracing-cpp/CMakeLists.txt
agent_writer.cpp
C:\Users\first.last\dd-opentracing-cpp\src\agent_writer.h(4,10): fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory [C:\Users\first.last\dd-opentracing-cpp\.build\dd_opentracing.vcxproj]
bool.cpp
dynamic_load.cpp
C:\Users\first.last\dd-opentracing-cpp\include\datadog/opentracing.h(19,10): fatal error C1083: Cannot open include file: 'opentracing/tracer.h': No such file or directory [C:\Users\first.last\dd-opentracing-cpp\.build\dd_opentracing.vcxproj]
encoder.cpp
C:\Users\first.last\dd-opentracing-cpp\include\datadog/opentracing.h(19,10): fatal error C1083: Cannot open include file: 'opentracing/tracer.h': No such file or directory [C:\Users\first.last\dd-opentracing-cpp\.build\dd_opentracing.vcxproj]
glob.cpp
C:\Users\first.last\dd-opentracing-cpp\src\glob.h(15,10): fatal error C1083: Cannot open include file: 'opentracing/string_view.h': No such file or directory [C:\Users\first.last\dd-opentracing-cpp\.build\dd_opentracing.vcxproj]
limiter.cpp
--snip---
Thanks for leaving this detailed bug report together with its solution, @buzz3791. You also did the same in #266.
Windows builds are the least frequently tested part of this project. My teammate and I do not have ready access to Windows workstations, and our CI pipeline does not build or test on Windows. You've done us a favor by reporting and working around these build issues on Windows.
When we revisit Windows support (which it appears, from your investigations, we should soon), we'll integrate your changes or something like them. For now, I'm glad you found workarounds.
When building dd-opentracing-cpp on Windows x64 Visual Studio C++ 2022 using the instructions at [1]
I'm encountering the following error:
C:\Users\first.last\dd-opentracing-cpp\src\agent_writer.h(4,10): fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory [C:\Users\first.last\dd-opentracing-cpp\.build\dd_opentracing.vcxproj]
I installed vcpkg, cmake, and ran all previous build steps successfully including
cmake -DCMAKE_TOOLCHAIN_FILE=%HOMEPATH%\vcpkg\scripts\buildsystems\vcpkg.cmake ..
But the following command is failing:
cmake --build . -- -p:Configuration=RelWithDebInfo
when trying to find third party include header files.
Build output:
1 - https://github.com/DataDog/dd-opentracing-cpp#datadog-opentracing-c-client
The text was updated successfully, but these errors were encountered: