opentelemetry-dotnet-instru.../docs/internal/native-dependencies.md

1.5 KiB

Native dependencies

fmt

Setup

Package is acquired via Microsoft vcpkg

  1. Setup vcpkg

  2. Install static fmt packages

        # https://learn.microsoft.com/en-us/vcpkg/commands/install
        .\vcpkg install fmt:x86-windows-static
        .\vcpkg install fmt:x64-windows-static
    
  3. Update static fmt packages (already installed)

        # 1. Navigate to the local vcpkg git directory.
        # 2. Use Git pull to update the local portfile versions.
        git pull
    
        # https://learn.microsoft.com/en-us/vcpkg/commands/upgrade
        .\vcpkg upgrade fmt:x86-windows-static --no-dry-run
        .\vcpkg upgrade fmt:x64-windows-static --no-dry-run
    
  4. Find packages in vcpkg\packages and copy to opentelemetry-dotnet-instrumentation\src\OpenTelemetry.AutoInstrumentation.Native\lib

spdlog

Setup

Package is acquired via Github release.

  1. Download source code (zip) from release
  2. Copy src and include to opentelemetry-dotnet-instrumentation\src\OpenTelemetry.AutoInstrumentation.Native\lib\spdlog
  3. Resync src files and references in opentelemetry-dotnet-instrumentation\src\OpenTelemetry.AutoInstrumentation.Native\OpenTelemetry.AutoInstrumentation.Native.vcxproj