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

Package: opencv4:x64-windows Vcpkg version: 2021-08-03-1a6d67b8150e94b7f473c6ab1c0cfdd794316a64 #19497

Closed
avre10 opened this issue Aug 11, 2021 · 8 comments
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@avre10
Copy link

avre10 commented Aug 11, 2021

Host Environment

  • OS: [Windows]

Failure logs
CMake Error at D:/vcpkg/buildtrees/opencv4/src/4.5.2-755f235ba0.clean/cmake/OpenCVDownload.cmake:161 (message):
Downloads are not permitted during configure. Please pre-download the file "D:/vcpkg/downloads/opencv-cache/nvidia_optical_flow/a73cd48b18dcc0cc8933b30796074191-edb50da3cf849840d680249aa6dbef248ebce2ca.zip":

  vcpkg_download_distfile(OCV_DOWNLOAD
      URLS "https://github.com/NVIDIA/NVIDIAOpticalFlowSDK/archive/edb50da3cf849840d680249aa6dbef248ebce2ca.zip"
      FILENAME "opencv-cache/nvidia_optical_flow/a73cd48b18dcc0cc8933b30796074191-edb50da3cf849840d680249aa6dbef248ebce2ca.zip"
      SHA512 0
  )

Call Stack (most recent call first):
D:/vcpkg/buildtrees/opencv4/src/4.5.2-58c4f07550.clean/modules/cudaoptflow/CMakeLists.txt:15 (ocv_download)

Additional context
Building Package: opencv4:x64-windows
Vcpkg version: 2021-08-03-1a6d67b8150e94b7f473c6ab1c0cfdd794316a64

@NancyLi1013 NancyLi1013 added the category:port-bug The issue is with a library, which is something the port should already support label Aug 12, 2021
@NancyLi1013
Copy link
Contributor

@cenit

Could you please help take a look what's wrong here? Thanks.

@cenit
Copy link
Contributor

cenit commented Aug 12, 2021

it is already fixed in #18827, but that PR is waiting for another pr to be merged.
time is passing fast and opencv will soon have another release, and here on vcpkg we are still stuck on the older one and with download errors

@NancyLi1013
Copy link
Contributor

Thanks for your information. @cenit

Yes, there are always something blocks the progress of PR.

@avre10
Copy link
Author

avre10 commented Aug 12, 2021

Any solution now apart of waiting?

@cenit
Copy link
Contributor

cenit commented Aug 12, 2021

manually modifying the portfile at line

vcpkg_download_distfile(OCV_DOWNLOAD
URLS "https://github.com/NVIDIA/NVIDIAOpticalFlowSDK/archive/79c6cee80a2df9a196f20afd6b598a9810964c32.zip"
FILENAME "opencv-cache/nvidia_optical_flow/ca5acedee6cb45d0ec610a6732de5c15-79c6cee80a2df9a196f20afd6b598a9810964c32.zip"
SHA512 d80cdedec588dafaad4ebb8615349f842ecdc64d3ca9480fee7086d606e6f2362606a9a2ce273c5cf507be2840ec24bbcbe32c2962672c3bcfb72d31428ef73d
)
with the message above

vcpkg_download_distfile(OCV_DOWNLOAD
      URLS "https://github.com/NVIDIA/NVIDIAOpticalFlowSDK/archive/edb50da3cf849840d680249aa6dbef248ebce2ca.zip"
      FILENAME "opencv-cache/nvidia_optical_flow/a73cd48b18dcc0cc8933b30796074191-edb50da3cf849840d680249aa6dbef248ebce2ca.zip"
      SHA512 0
  )

note that sha512 is zero and so you will need to apply another correction, changing 0 to the proper value which vcpkg will give to you after relaunching install

@avre10
Copy link
Author

avre10 commented Aug 12, 2021

Thanks. Solution works.

@avre10 avre10 closed this as completed Aug 12, 2021
@NancyLi1013
Copy link
Contributor

Please keep this issue open until it is fixed.

@NancyLi1013 NancyLi1013 reopened this Aug 13, 2021
@PhoebeHui
Copy link
Contributor

@avre10, this issue has been fixed, please get latest source and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

4 participants