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
brand new to otel-cpp, and tried to build otel-cpp under windows 10 VS2022 v17.14.9 First step was to set up windows environment in powershell with: \ci\setup_windows_ci_environment.ps1
zlib was missing so installed it using the vcpkg in the tools dir, and got zlib_1.3.1_x64-windows successfully installed. so now, i'd like to build otel-cpp for an otlp grpc log app, and ran into a problem: CMake config step claimed ZLIB_LIBRARY was missing, so i added explicit paths to the config line and got past that. All the absiel, and a bunch of grpc libs built, but the next issue is a show stopper:
LINK : fatal error LNK1104: cannot open file 'D:\dev\working\github\opentelemetry-cpp\tools\vcpkg\packages\zlib_x64-windows\lib.obj' [D:\dev\working\github\opentelemetry-cpp\build\ext\src\dll\opentelemetry_cpp.vcxproj]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
brand new to otel-cpp, and tried to build otel-cpp under windows 10 VS2022 v17.14.9 First step was to set up windows environment in powershell with:
\ci\setup_windows_ci_environment.ps1
zlib was missing so installed it using the vcpkg in the tools dir, and got zlib_1.3.1_x64-windows successfully installed. so now, i'd like to build otel-cpp for an otlp grpc log app, and ran into a problem: CMake config step claimed ZLIB_LIBRARY was missing, so i added explicit paths to the config line and got past that. All the absiel, and a bunch of grpc libs built, but the next issue is a show stopper:
LINK : fatal error LNK1104: cannot open file 'D:\dev\working\github\opentelemetry-cpp\tools\vcpkg\packages\zlib_x64-windows\lib.obj' [D:\dev\working\github\opentelemetry-cpp\build\ext\src\dll\opentelemetry_cpp.vcxproj]
missing lib.obj really doesn't make sense.
config line (which builds properly under linux)
cmake .. -DWITH_STL=ON -DWITH_ZLIB=ON -DBUILD_LOGS_PREVIEW=ON -DWITH_ABI_VERSION_1=OFF -DWITH_ABI_VERSION_2=ON -DWITH_STL=ON -DCMAKE_CXX_STANDARD=17 -DBUILD_TESTING=OFF -DWITH_EXAMPLES=OFF -DOPENTELEMETRY_BUILD_DLL=ON -DWITH_OTLP_HTTP=OFF -DWITH_OTLP_GRPC=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DZLIB_LIBRARY:FILEPATH=D:\dev\working\github\opentelemetry-cpp\tools\vcpkg\packages\zlib_x64-windows\lib -DZLIB_INCLUDE_DIR:PATH=D:\dev\working\github\opentelemetry-cpp\tools\vcpkg\packages\zlib_x64-windows\include
My question is: I don't understand why the zlib problems. Are there some further windows tweaks to get this working or ??
Beta Was this translation helpful? Give feedback.
All reactions