microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.81k stars 6.3k forks source link

[openssl] Build error on arm64-osx #39265

Closed JeffreyChee closed 3 months ago

JeffreyChee commented 3 months ago

Package: openssl:arm64-osx@3.3.1

Host Environment

To Reproduce

vcpkg install aws-sdk-cpp[s3, lambda] --recurse

Failure logs

-- Downloading https://github.com/openssl/openssl/archive/openssl-3.3.1.tar.gz -> openssl-openssl-openssl-3.3.1.tar.gz...
-- Extracting source /Users/foosiongchee/Projects/Vcpkg/vcpkg/downloads/openssl-openssl-openssl-3.3.1.tar.gz
-- Applying patch cmake-config.patch
-- Applying patch command-line-length.patch
-- Applying patch script-prefix.patch
-- Applying patch windows/install-layout.patch
-- Applying patch windows/install-pdbs.patch
-- Applying patch unix/android-cc.patch
-- Applying patch unix/move-openssldir.patch
-- Applying patch unix/no-empty-dirs.patch
-- Applying patch unix/no-static-libs-for-shared.patch
-- Using source at /Users/foosiongchee/Projects/Vcpkg/vcpkg/buildtrees/openssl/src/nssl-3.3.1-6a4778eae7.clean
-- Getting CMake variables for arm64-osx
-- Getting CMake variables for arm64-osx-dbg
-- Getting CMake variables for arm64-osx-rel
CMake Error at scripts/cmake/vcpkg_find_acquire_program.cmake:166 (message):
  Could not find pkg-config.  Please install it via your package manager:

      brew install pkg-config
Call Stack (most recent call first):
  scripts/cmake/z_vcpkg_setup_pkgconfig_path.cmake:19 (vcpkg_find_acquire_program)
  scripts/cmake/vcpkg_configure_make.cmake:813 (z_vcpkg_setup_pkgconfig_path)
  ports/openssl/unix/portfile.cmake:106 (vcpkg_configure_make)
  ports/openssl/portfile.cmake:71 (include)
  scripts/ports.cmake:175 (include)

I'm noob at sdk setups.. please help me..
github-actions[bot] commented 3 months ago

From the log:

  Could not find pkg-config.  Please install it via your package manager:

      brew install pkg-config