Closed laper32 closed 2 years ago
Similarly, for opencv
PS D:\toolkit\vcpkg> vcpkg install opencv4:x64-windows
Computing installation plan...
The following packages will be built and installed:
* libjpeg-turbo[core]:x64-windows -> 2.1.3#1
* libpng[core]:x64-windows -> 1.6.37#16
* libwebp[core,nearlossless,simd,unicode]:x64-windows -> 1.2.1
opencv4[core,default-features,dnn,jpeg,png,quirc,tiff,webp]:x64-windows -> 4.5.5
* protobuf[core]:x64-windows -> 3.19.4
* quirc[core]:x64-windows -> 1.1#2
* tiff[core,jpeg,lzma,zip]:x64-windows -> 4.3.0#6
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Restored 0 packages from C:\Users\user\AppData\Local\vcpkg\archives in 296.7 us. Use --debug to see more details.
Starting package 1/7: libjpeg-turbo:x64-windows
Building package libjpeg-turbo[core]:x64-windows...
-- Downloading https://github.com/libjpeg-turbo/libjpeg-turbo/archive/c5f269eb9665435271c05fbcaf8721fa58e9eafa.tar.gz -> libjpeg-turbo-libjpeg-turbo-c5f269eb9665435271c05fbcaf8721fa58e9eafa.tar.gz...
[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://github.com/libjpeg-turbo/libjpeg-turbo/archive/c5f269eb9665435271c05fbcaf8721fa58e9eafa.tar.gz
Error: Failed to download from mirror set:
https://github.com/libjpeg-turbo/libjpeg-turbo/archive/c5f269eb9665435271c05fbcaf8721fa58e9eafa.tar.gz: failed: status code 404
[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(709):
[DEBUG] Time in subprocesses: 0 us
[DEBUG] Time in parsing JSON: 3 us
[DEBUG] Time in JSON reader: 0 us
[DEBUG] Time in filesystem: 820 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 564.4 ms (558202 us)
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:84 (message):
Failed to download file with error: 1
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. Your 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_download_distfile.cmake:309 (z_vcpkg_download_distfile_show_proxy_and_fail)
scripts/cmake/vcpkg_from_github.cmake:175 (vcpkg_download_distfile)
ports/libjpeg-turbo/portfile.cmake:5 (vcpkg_from_github)
scripts/ports.cmake:145 (include)
Error: Building package libjpeg-turbo:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `git pull` and `.\vcpkg update`.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libjpeg-turbo
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[libjpeg-turbo]+Build+error
including:
package: libjpeg-turbo[core]:x64-windows -> 2.1.3#1
vcpkg-tool version: 2022-03-09-1affd32f93b299d5a907816c328ca3ededb73a7e
vcpkg-scripts version: 5220969a9 2022-03-15 (8 hours ago)
Additionally, attach any relevant sections from the log files above.
I can't reproduce this issue, could you successfully access the following two mirrors directly?
https://github.com/boostorg/config/archive/boost-1.78.0.tar.gz
https://github.com/libjpeg-turbo/libjpeg-turbo/archive/c5f269eb9665435271c05fbcaf8721fa58e9eafa.tar.gz
That's weird, I can access both mirrors and download them. Do you have antivirus software turned on?
That's weird, I can access both mirrors and download them. Do you have antivirus software turned on?
No, default windows defender only, windows 11.
libjpeg-turbo-c5f269eb9665435271c05fbcaf8721fa58e9eafa.tar.gz config-boost-1.78.0.tar.gz
Now both of them are can be downloaded directly, works correctly.
Does the vcpkg install command also work properly now?
Does the vcpkg install command also work properly now?
Currently still not :( The download url is still status 404.
This may be a local network issue that I don't know how to fix.
By referencing this post then fixed. Teleporter
Looks like this is network issue indeed.
UPDATE: Despite using proxy could temporary fix this issue, but it's better to fix it without any proxy.
Please report the Chinese mirror issue to gitee instead.
Thanks.
Host Environment
To Reproduce vcpkg install boost:x64-windows
Failure logs