windows平台下Visual studio2022编译kicad报错解决方案

cmake配置时遇到的错误

error 1

error: Failed to download from mirror set
error: https://github.com/boostorg/function/archive/boost-1.81.0.tar.gz: WinHttpSendRequest failed with exit code 12002
error: https://github.com/boostorg/function/archive/boost-1.81.0.tar.gz: WinHttpSendRequest failed with exit code 12002
error: https://github.com/boostorg/function/archive/boost-1.81.0.tar.gz: WinHttpSendRequest failed with exit code 12002
error: https://github.com/boostorg/function/archive/boost-1.81.0.tar.gz: WinHttpSendRequest failed with exit code 12002
[DEBUG] D:\a_work\1\s\src\vcpkg\base\downloads.cpp(960):
[DEBUG] Time in subprocesses: 0us
[DEBUG] Time in parsing JSON: 7us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 3215us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 1.8456364333333333 min (110710643us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):

  Failed to download file with error: 1
  If you are using a proxy, please check your proxy setting. Possible causes are:
  
  1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
     to `https://address:port`. This is not correct, because `https://` prefix
     claims the proxy is an HTTPS proxy, while your proxy (v2ray, sr
     , etc..) is an HTTP proxy. Try setting `http://address:port` to both
     HTTP_PROXY and HTTPS_PROXY instead.
  
  2. If you are using Windows, vcpkg will automatically use your Windows IE Proxy Settings
     set by your proxy software. See https://github.com/microsoft/vcpkg-tool/pull/77
     The value set by your proxy might be wrong, or have same `https://` prefix issue.
  
  3. Your proxy's remote server is out of service.
  
  If you've tried directly download the link, and believe this is not a temporary
  download server failure, please submit an issue at https://github.com/Microsoft/vcpkg/issues
  to report this upstream download server failure.

Call Stack (most recent call first):
scripts/cmake/vcpkg_download_distfile.cmake:270 (z_vcpkg_download_distfile_show_proxy_and_fail)
scripts/cmake/vcpkg_from_github.cmake:106 (vcpkg_download_distfile)
C:/Users/44257/AppData/Local/vcpkg/registries/git-trees/137f9eb9242e4fa1aac35c77497f39b830d74943/portfile.cmake:3 (vcpkg_from_github)
scripts/ports.cmake:147 (include)

错误:生成 boost-function:x64-windows 失败,结果为: BUILD_FAILED
错误:请确保使用具有“git pull” 和 “vcpkg update”的最新端口文件。
然后,在以下位置查看已知问题:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+boost-function
可在以下位置提交新问题:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[boost-function]+Build+error
在 Bug 报告标题中包含“[boost-function] 内部版本错误”,bug 描述中的以下版本信息,并从上面附加任何相关的失败日志。
vcpkg-tool version: 2023-03-14-105f7f7e8a5ea10dfac9874ff9d1a6bacba5f454
vcpkg-scripts version: unknown

报告问题时,请使用 F:\kicad-source-mirror-master\build\x64-Debug\vcpkg_installed\vcpkg\issue_body.md 中的预填充模板。

解决方案

解决:一般都是由于网的问题,可以选择科学上网,或者换个wifi什么的,要是下载链接能直接打开的话,就选择下载到本地,再改成指定名字名放到vcpkg-master\downloads路径下
参考文献:
kicad
windows C++ VISUAL STUDIO开启slam

你可能感兴趣的:(kicad,windows,visual,studio,ide)