Rust-SDL2 / rust-sdl2

SDL2 bindings for Rust
MIT License
2.65k stars 465 forks source link

VCPKG fails #1374

Closed RealMrCactus closed 1 month ago

RealMrCactus commented 4 months ago
cargo vcpkg --verbose build
vcpkg root is C:\Users\bhrae\Desktop\Rust\RMCProgramExtract\target\vcpkg
    Fetching vcpkg
POST git-upload-pack (165 bytes)
From https://github.com/microsoft/vcpkg
 = [up to date]          master     -> origin/master
    Checkout rev 261c458af6e3eed5d099144aff95d2b5035f656b
Updating files: 100% (9005/9005), done.
Previous HEAD position was 6f7ffeb18 [many  ports] Add X windows part 11/N (#27441)
HEAD is now at 261c458af [tensorflow] Update the max version of the supported bazel (#19165)
-- stdout --
Using local portfile versions. To update the local portfiles, use `git pull`.
No packages need updating.

-- stderr --

ExitStatus(ExitStatus(0))
  Installing sdl2 sdl2-ttf sdl2-gfx sdl2
Computing installation plan...
The following packages will be built and installed:
  * brotli[core]:x64-windows-static-md -> 1.0.9#1
  * bzip2[core]:x64-windows-static-md -> 1.0.8#2
  * freetype[brotli,bzip2,core,png,zlib]:x64-windows-static-md -> 2.10.4
  * libpng[core]:x64-windows-static-md -> 1.6.37#15
    sdl2[core]:x64-windows-static-md -> 2.0.14#4
    sdl2-gfx[core]:x64-windows-static-md -> 1.0.4#7
    sdl2-ttf[core]:x64-windows-static-md -> 2.0.15-3
  * vcpkg-cmake[core]:x64-windows -> 2021-07-26
  * vcpkg-cmake-config[core]:x64-windows -> 2021-05-22#1
  * zlib[core]:x64-windows-static-md -> 1.2.11#11
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows-static-md...
Detecting compiler hash for triplet x64-windows...
Could not locate cached archive: C:\Users\bhrae\AppData\Local\vcpkg\archives\1a\1a855fcb72ee60e583a993e6469a34f358087584031a9877a431260707632674.zip
Could not locate cached archive: C:\Users\bhrae\AppData\Local\vcpkg\archives\a4\a472b16b1dde04775a8613e382b1c776cdbf8a654c4cb684205432a1c6b0cab3.zip
Could not locate cached archive: C:\Users\bhrae\AppData\Local\vcpkg\archives\63\63899fc29c6a37793c111a980345f8aff4bad1e43dd7563c3094026825fbe115.zip
Could not locate cached archive: C:\Users\bhrae\AppData\Local\vcpkg\archives\57\57008fce8ed2cb5bbbcbd0eff8c754ab39e48e5e18379b79cfc10b86f7c6238b.zip
Could not locate cached archive: C:\Users\bhrae\AppData\Local\vcpkg\archives\22\220a34688cd02d0c59f2d8d45731efb4ba2b2363bada83829788064b2ef8c8ed.zip
Could not locate cached archive: C:\Users\bhrae\AppData\Local\vcpkg\archives\e0\e06aaee4984fd71cdd0f02b29e8fe9cc765127ec90bf2cc6d75b15150b431f1b.zip
Could not locate cached archive: C:\Users\bhrae\AppData\Local\vcpkg\archives\2a\2a3d275e8215b20396e0ba9ce731fe03ef5430a9439cb7f17cc2d75c52aa745c.zip
Could not locate cached archive: C:\Users\bhrae\AppData\Local\vcpkg\archives\1e\1e6335a8c5d405e45c165ac874fff714f1c3e143f2333d520d345eb973a42158.zip
Could not locate cached archive: C:\Users\bhrae\AppData\Local\vcpkg\archives\9a\9a788331a9935dadfb05f24c540f488559801d77ccec72dcc04e7011a50b1e34.zip
Could not locate cached archive: C:\Users\bhrae\AppData\Local\vcpkg\archives\95\95aa53fa444448a1136ca0fee8666b51de18b6829a575e1bb71a5124483f64d0.zip
   Compiling brotli (triplet x64-windows-static-md)
Starting package 1/10: brotli:x64-windows-static-md
Building package brotli[core]:x64-windows-static-md...
-- Using community triplet x64-windows-static-md. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\Users\bhrae\Desktop\Rust\RMCProgramExtract\target\vcpkg\triplets\community\x64-windows-static-md.cmake
-- Using C:/Users/bhrae/Desktop/Rust/RMCProgramExtract/target/vcpkg/downloads/google-brotli-e61745a6b7add50d380cfd7d3883dd6c62fc2c71.tar.gz
-- Cleaning sources at C:/Users/bhrae/Desktop/Rust/RMCProgramExtract/target/vcpkg/buildtrees/brotli/src/6c62fc2c71-7c6c2710e9.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/bhrae/Desktop/Rust/RMCProgramExtract/target/vcpkg/downloads/google-brotli-e61745a6b7add50d380cfd7d3883dd6c62fc2c71.tar.gz
-- Applying patch install.patch
-- Applying patch fix-arm-uwp.patch
-- Applying patch pkgconfig.patch
-- Applying patch fix-ios.patch
-- Using source at C:/Users/bhrae/Desktop/Rust/RMCProgramExtract/target/vcpkg/buildtrees/brotli/src/6c62fc2c71-7c6c2710e9.clean
-- Configuring x64-windows-static-md
-- Building x64-windows-static-md-dbg
-- Building x64-windows-static-md-rel
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'manifests' = off
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst
[DEBUG] Downloading https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst
[DEBUG] Downloading https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst
[DEBUG] Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst
[DEBUG] Downloading https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst
[DEBUG] Downloading https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst
[DEBUG] Downloading https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst
[DEBUG] Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst
Error: Failed to download from mirror set:
https://repo.msys2.org/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst: failed: status code 404
https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst: failed: status code 404
https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst: failed: status code 404
https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst: failed: status code 404
https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst: failed: status code 404
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst: failed: status code 404
https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst: failed: status code 404

[DEBUG] C:\a\1\s\src\vcpkg\base\downloads.cpp(626)
[DEBUG] Exiting after 7764486 us (7764391 us)

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

      Failed to download file.
      If you use 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, shadowsocksr
         , etc..) is an HTTP proxy. Try setting `http://address:port` to both
         HTTP_PROXY and HTTPS_PROXY instead.

      2. You are using Fiddler. Currently a bug (https://github.com/microsoft/vcpkg/issues/17752)
         will set HTTPS_PROXY to `https://fiddler_address:port` which lead to problem 1 above.
         Workaround is open Windows 10 Settings App, and search for Proxy Configuration page,
         Change `http=address:port;https=address:port` to `address`, and fill the port number.

      3. You proxy's remote server is out of service.

      In future vcpkg releases, if you are using Windows, you no longer need to set
      HTTP(S)_PROXY environment variables. Vcpkg will simply apply Windows IE Proxy
      Settings set by your proxy software. See (https://github.com/microsoft/vcpkg-tool/pull/49)
      and (https://github.com/microsoft/vcpkg-tool/pull/77)

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

Call Stack (most recent call first):
  scripts/cmake/vcpkg_acquire_msys.cmake:84 (vcpkg_download_distfile)
  scripts/cmake/vcpkg_acquire_msys.cmake:174 (z_vcpkg_acquire_msys_download_package)
  scripts/cmake/vcpkg_find_acquire_program.cmake:449 (vcpkg_acquire_msys)
  scripts/cmake/vcpkg_fixup_pkgconfig.cmake:116 (vcpkg_find_acquire_program)
  ports/brotli/portfile.cmake:26 (vcpkg_fixup_pkgconfig)
  scripts/ports.cmake:141 (include)

Error: Building package brotli:x64-windows-static-md failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: brotli:x64-windows-static-md
  Vcpkg version: 2021-07-26-9425cf5f512f242c0bcbabac31f08832825aee81

Additionally, attach any relevant sections from the log files above.
cargo-vcpkg: failed
[package]
name = "RMCProgramExtract"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]

[dependencies.sdl2]
version = "0.36"
default-features = false
features = ["ttf","gfx","static-link","use-vcpkg"]

[package.metadata.vcpkg]
dependencies = ["sdl2", "sdl2-ttf", "sdl2-gfx"]
git = "https://github.com/microsoft/vcpkg"
rev = "261c458af6e3eed5d099144aff95d2b5035f656b"

[package.metadata.vcpkg.target]
x86_64-pc-windows-msvc = { triplet = "x64-windows-static-md" }
RealMrCactus commented 4 months ago

i tried different revisions of vcpkg as well