Skip to content

[libb2] Build error on arm64-osx (pkg-config issue) #50681

@mntt-SSE

Description

@mntt-SSE

Hi!

I'm trying to build libb2 on MacOS (arm64-osx), but I get the following error:

-- Fixing pkgconfig file: /Users/Shared/jenkins/vcpkg_/d82f6a36/packages/libb2_arm64-osx/usr/local/lib/pkgconfig/libb2.pc
CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:134 (message):
  /opt/homebrew/bin/pkg-config --exists libb2 failed with error code: 1

      ENV{PKG_CONFIG_PATH}: "/Users/Shared/jenkins/vcpkg_/d82f6a36/packages/libb2_arm64-osx/lib/pkgconfig:/Users/Shared/jenkins/vcpkg_/d82f6a36/packages/libb2_arm64-osx/share/pkgconfig:/usr/local/var/jenkins/workspace/build/vcpkg_installed/arm64-osx/lib/pkgconfig:/usr/local/var/jenkins/workspace/build/vcpkg_installed/arm64-osx/share/pkgconfig"
      output: Package libb2 was not found in the pkg-config search path.

  Perhaps you should add the directory containing `libb2.pc'

  to the PKG_CONFIG_PATH environment variable

  Package 'libb2' not found
Call Stack (most recent call first):
  scripts/cmake/vcpkg_fixup_pkgconfig.cmake:196 (z_vcpkg_fixup_pkgconfig_check_files)
  /usr/local/var/jenkins/.cache/vcpkg/registries/git-trees/4bf555d778e96bde29715be0519297dd805b9d2b/portfile.cmake:17 (vcpkg_fixup_pkgconfig)
  scripts/ports.cmake:206 (include)

I've run the following command to install the relevant tools:

brew install autoconf autoconf-archive automake libtool

Any idea what could be wrong or what I can do to debug this further?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions