Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[opencv4] Build error on arm64-windows #43271

Open
ztt19851213 opened this issue Jan 15, 2025 · 1 comment
Open

[opencv4] Build error on arm64-windows #43271

ztt19851213 opened this issue Jan 15, 2025 · 1 comment
Assignees
Labels
category:question This issue is a question

Comments

@ztt19851213
Copy link

Package: opencv4[calib3d,contrib,core,default-features,dnn,dshow,fs,gapi,highgui,intrinsics,jpeg,png,quirc,thread,tiff,webp,win32ui]:[email protected]#3

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.42.34435.0
  • vcpkg-tool version: 2025-01-11-0f310537c75015100d200eb71b137f6376aad510
    vcpkg-scripts version: d4f3e12 2025-01-14 (6 hours ago)

To Reproduce

vcpkg install opencv[contrib]:arm64-windows

Failure logs

Downloading opencv4-4.11.0-include-chrono.patch
Successfully downloaded opencv4-4.11.0-include-chrono.patch.
Downloading opencv-opencv-4.10.0.tar.gz
Successfully downloaded opencv-opencv-4.10.0.tar.gz.
-- Extracting source D:/soft/vcpkg/downloads/opencv-opencv-4.10.0.tar.gz
-- Applying patch 0001-disable-downloading.patch
-- Applying patch 0002-install-options.patch
-- Applying patch 0003-force-package-requirements.patch
-- Applying patch 0004-fix-eigen.patch
-- Applying patch 0005-fix-policy-CMP0057.patch
-- Applying patch 0006-fix-uwp.patch
-- Applying patch 0008-devendor-quirc.patch
-- Applying patch 0009-fix-protobuf.patch
-- Applying patch 0010-fix-uwp-tiff-imgcodecs.patch
-- Applying patch 0011-remove-python2.patch
-- Applying patch 0012-fix-zlib.patch
-- Applying patch 0014-fix-cmake-in-list.patch
-- Applying patch 0015-fix-freetype.patch
-- Applying patch 0017-fix-flatbuffers.patch
-- Applying patch 0019-opencl-kernel.patch
-- Applying patch 0020-miss-openexr.patch
-- Applying patch D:/soft/vcpkg/downloads/opencv4-4.11.0-include-chrono.patch
-- Using source at D:/soft/vcpkg/buildtrees/opencv4/src/4.10.0-db32e53cd3.clean
Downloading adb1c512e09ca2c7a6faef36f9c53e59-v1.0.0a3.tar.gz
Successfully downloaded adb1c512e09ca2c7a6faef36f9c53e59-v1.0.0a3.tar.gz.
Downloading opencv-opencv_contrib-4.10.0.tar.gz
Successfully downloaded opencv-opencv_contrib-4.10.0.tar.gz.
-- Extracting source D:/soft/vcpkg/downloads/opencv-opencv_contrib-4.10.0.tar.gz
-- Applying patch 0007-contrib-fix-hdf5.patch
-- Applying patch 0013-contrib-fix-ogre.patch
-- Applying patch 0016-contrib-fix-freetype.patch
-- Applying patch 0018-contrib-fix-tesseract.patch
-- Using source at D:/soft/vcpkg/buildtrees/opencv4/src/4.10.0-64012148a7.clean
Downloading 238e2b2d6f3c18d6c3a30de0c31e23cf-detect.caffemodel
warning: Download failed -- retrying after 1000ms
warning: Download failed -- retrying after 2000ms
warning: Download failed -- retrying after 4000ms
Successfully downloaded 238e2b2d6f3c18d6c3a30de0c31e23cf-detect.caffemodel.
Downloading cbfcd60361a73beb8c583eea7e8e6664-sr.caffemodel
warning: Download failed -- retrying after 1000ms
warning: Download failed -- retrying after 2000ms
warning: Download failed -- retrying after 4000ms
Failed to download cbfcd60361a73beb8c583eea7e8e6664-sr.caffemodel.
If you are using a proxy, please ensure your proxy settings are correct.
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. 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 our of service.
If you've tried directly download the link, and believe this is not a temporay download server failure, please submit an issue at https://github.com/Microsoft/vcpkg/issues
to report this upstream download server failure.
error: https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.caffemodel: WinHttpSendRequest failed with exit code 12002
error: https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.caffemodel: WinHttpSendRequest failed with exit code 12002
error: https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.caffemodel: WinHttpSendRequest failed with exit code 12002
error: https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.caffemodel: WinHttpReceiveResponse failed with exit code 12002
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:231 (message):
  Download failed, halting portfile.
Call Stack (most recent call first):
  ports/opencv4/portfile.cmake:197 (vcpkg_download_distfile)
  scripts/ports.cmake:196 (include)



@Mengna-Li
Copy link
Contributor

I'm not able to reproduce this issue, can you try manually accessing this link? https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.caffemodel
There is no problem for me to download these links manually. This may be a problem with your local proxy or firewall.

@Mengna-Li Mengna-Li added the category:question This issue is a question label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants