首页 > 解决方案 > 使用 vcpkg 安装 OpenAL 但遇到错误

问题描述

我正在尝试使用 vcpkg 工具安装 OpenAL,但它给出了我无法解决的错误消息。错误信息如下。

C:\Dev\vcpkg\vcpkg-2021.05.12>vcpkg install openal-soft:x64-windows 计算安装计划... 会编译安装以下包:openal-soft[core]:x64-windows -> 1.21 .1 检测三元组 x64-windows 的编译器哈希... -- 将 HTTP_PROXY 环境变量设置为http://127.0.0.1:16005 -- 将 HTTPS_PROXY 环境变量设置为https://127.0.0.1:16005 -- 设置 SOCKS_PROXY 环境变量到 socks://127.0.0.1:16005 错误:检测编译器信息时:C:\Dev\vcpkg\vcpkg-2021.05.12\buildtrees\detect_compiler\stdout-x64-windows.log 的日志内容为:--找到 ninja('1.8.2') 但至少需要 1.10.1 版本!如果可能,尝试使用内部版本!-- 下载https://github.com/ninja-build/ninja/releases/download/v1.10.1/ninja-win.zip -> ninja-win-1.10.1.zip... -- 下载https://github。 com/ninja-build/ninja/releases/download/v1.10.1/ninja-win.zip ..。失败的。状态:4;“由于构建时决定,未在此 libcurl 中找到内置的请求功能、协议或选项。” scripts/cmake/vcpkg_download_distfile.cmake:184 处的 CMake 错误(消息):

  Failed to download file.
  If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY environment
  variables to "https://user:password@your-proxy-ip-address:port/".

  If error with status 4 (Issue #15434),
  try setting "http://user:password@your-proxy-ip-address:port/".

  Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues

调用堆栈(最近调用优先):
scripts/cmake/vcpkg_find_acquire_program.cmake:544 (vcpkg_download_distfile)
scripts/cmake/vcpkg_configure_cmake.cmake:168 (vcpkg_find_acquire_program)
scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake)
scripts/ports.cmake :142(包括)

错误:vcpkg 无法检测到活动编译器的信息。有关 CMake 失败输出,请参见上文。

我该怎么办?

标签: cmakevcpkg

解决方案


推荐阅读