c++ - 如何使用 vcpkg 跳过依赖项?
问题描述
我正在尝试安装cgal
并收到无法安装依赖vcpkg
项的错误,因为它的站点不可用。我可以跳过这个依赖吗?mpfr
Additional packages (*) will be modified to complete this operation.
Starting package 1/88: mpfr:x86-windows
Building package mpfr[core]:x86-windows...
-- Downloading http://www.mpfr.org/mpfr-4.0.2/mpfr-4.0.2.tar.xz...
-- Downloading http://www.mpfr.org/mpfr-4.0.2/mpfr-4.0.2.tar.xz... Failed. Status: 7;"Couldn't connect to server"
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:175 (message):
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/".
Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues
解决方案
Build-Depends
可以使用文件中的字段来控制依赖关系CONTROL
。在你的情况下ports\cgal\CONTROL
了解更多信息; https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/control-files.md#control-files
但是,您删除此依赖项很可能无法构建cgal
推荐阅读
- python - 如何查找哪一列包含某个值?
- anylogic - 使用外部 Collada 文件导入的 3D 对象不符合最新架构
- system-verilog - 仅将一个文件的默认网络类型设置为无
- vue.js - v-autocomplete 更改背景列表
- reactjs - 使用 react-hook-form 进行 React-datepicker 验证
- java - 如何在 Android 应用中禁用消息锁屏?
- django - 无法将 Modelform 保存到数据库
- ckan - CKAN 按资源 last_modified 和 created 属性对数据集进行排序
- python - 是否可以限制不和谐中的不同用户根据他们的角色对嵌入做出反应?
- php - 在 Laravel updateOrCreate 中执行加法操作