TheOxFromOutOfTheBox

Results 15 comments of TheOxFromOutOfTheBox

Hi owent, I tried to make a CMakeLists.txt ``` include_directories(${CMAKE_SOURCE_DIR}/exporters/ostream/include) target_link_libraries(opentelemetry_exporter_ostream_span ${CMAKE_THREAD_LIBS_INIT} opentelemetry_api) add_executable(example_simple main.cc) target_link_libraries(example_simple ${CMAKE_THREAD_LIBS_INIT} opentelemetry_trace) ``` However I get the error while doing cmake ``` CMake Error...

Hey, I'm trying to build a cmake file with the help of [https://github.com/open-telemetry/opentelemetry-cpp/issues/1359](url) but my build keeps failing saying it cant find absl while i do have abseil installed. my...

So, on further research I realized I had to remove the absl installed before in usr/local in order to use the one vcpkg installed so I added it to the...

I was also checking out another way to link all libraries via g++ itself, and I ran into this ``` g++ -I/home/kmh/vcpkg/packages/opentelemetry-cpp_x64-linux/include/ test.cpp -o program -L/home/kmh/vcpkg/installed/x64-linux/lib/ $(ls /home/kmh/vcpkg/installed/x64-linux/lib/ | grep...

Hi owent, Regarding your comment about link order, I only decided to compile with the .a files I need. Here's my current compile statement. ``` g++ -I /home/kmh/vcpkg/packages/opentelemetry-cpp_x64-linux/include/ test.cpp ../vcpkg/installed/x64-linux/lib/libopentelemetry_trace.a...

So, update.With the g++ thing, the problem was the ordering of the included libs. Final run command ``` g++ -I /home/kmh/vcpkg/packages/opentelemetry-cpp_x64-linux/include/ ostreamspan.cpp ../vcpkg/installed/x64-linux/lib/libopentelemetry_version.a ../vcpkg/installed/x64-linux/lib/libopentelemetry_exporter_ostream_span.a ../vcpkg/installed/x64-linux/lib/libopentelemetry_resources.a ../vcpkg/installed/x64-linux/lib/libopentelemetry_trace.a ../vcpkg/installed/x64-linux/lib/libopentelemetry_common.a ../vcpkg/installed/x64-linux/lib/libabsl_bad_variant_access.a ../vcpkg/installed/x64-linux/lib/libopentelemetry_exporter_ostream_logs.a ../vcpkg/installed/x64-linux/lib/libopentelemetry_exporter_ostream_metrics.a...

Hey,given that I had issues with my previous CMakeLists.txt , I decided to start anew, trying to find proper methods to include the files.I ended up with something that kinda...

Hi, Thanks a lot for the quick response. As per your suggestion, I updated my cmakelists.txt . I'm now facing an error regarding ssl_get_peer_certificates which I thought were related to...

Update : I read in the openssl library usage section to use it like this ``` find_package(OpenSSL REQUIRED) target_link_libraries(main PRIVATE OpenSSL::SSL OpenSSL::Crypto) ``` Updated CMakeLists.txt ``` cmake_minimum_required(VERSION 3.17) set(CMAKE_TOOLCHAIN_FILE "${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake")...

Update number 2: I was able to see on running `nm /home/kmh/vcpkg/installed/x64-linux/lib/libcrypto.a | grep "EVP_DigestSignU"` and similar for the other one that these symbols were there in the .a lib...