cmake - 使用 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 失败输出,请参见上文。
我该怎么办?
解决方案
推荐阅读
- apache-royale - 将AS转换为JS时,是否有减少编译器输出的选项?
- vim - 如何根据状态行中的可用空白向 vim 状态行添加可变数量的字符
- sql - 将两个子查询的结果相除,条件为
- r - 在 ggplot2 中绘制大矩阵的直方图比基本 hist() 慢 20 倍
- hyperledger - 有没有办法在超级账本作曲家中加密数据,比如 sha2 或 sha3?
- javascript - 函数参数可以传递到字符串中吗?
- google-cloud-platform - 如何在 GCP 防火墙上阻止亚洲、俄罗斯和德国 ip
- c - 代码中额外的大括号有什么用?它有什么作用?
- javascript - RxJs 结合 http 请求
- azure-pipelines - 为什么在此管道中不遵守超时