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

[openimageio:x64-windows] building dependency x265 failed cause of old download link #13062

Closed
DrGul opened this issue Aug 21, 2020 · 2 comments

Comments

@DrGul
Copy link

DrGul commented Aug 21, 2020

Host Environment

  • OS: Windows 10
  • Compiler: unsure

To Reproduce
Steps to reproduce the behavior:
./vcpkg install openimageio:x64-windows

Failure logs

-Cut and past the appropriate build messages from the console output.
-- Downloading https://bitbucket.com/multicoreware/x265/get/3.2.tar.gz...
-- Downloading https://bitbucket.com/multicoreware/x265/get/3.2.tar.gz... Failed. Status: 22;"HTTP response code said error"
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:176 (message):
Package: x265:x64-windows
Vcpkg version: 2020.06.15-nohash

-Please attach any additional failure logs mentioned in the console output.

Additional context
Pretty sure the error is a changed path.
https://bitbucket.com/multicoreware/x265/get/3.2.tar.gz
Didn't find this, but found
https://bitbucket.org/multicoreware/x265_git/downloads/x265_3.2.tar.gz

@DrGul DrGul changed the title [<port name>] build failure [openimageio:x64-windows] build failure, could download x265 Aug 21, 2020
@DrGul DrGul changed the title [openimageio:x64-windows] build failure, could download x265 [openimageio:x64-windows] build failure, download x265 failed Aug 21, 2020
@DrGul
Copy link
Author

DrGul commented Aug 21, 2020

Fixed it in the meantime by making changes in x265 portfile located in
.\vcpkg\ports\x265\portfile.cmake

Commented out the vcpkg_from_bitbucket and added vcpkg_download_distfile and vcpkg_extract_source_archive_ex as below. No clue if there are issues with this fix, so use at own discretion.

# vcpkg_from_bitbucket(
#     OUT_SOURCE_PATH SOURCE_PATH
#     REPO multicoreware/x265
#     REF 3.2
#     SHA512 e98e26a9d3c2eb7f147ba052d9d8009e1c47e54905375b29e813f33ffddf8b7fac55ea455ae6d28ed1ade2d90f887c7cafe374873cd48b6c5e2560ddd21ccb84
#     HEAD_REF master
#     PATCHES
#         disable-install-pdb.patch
# )

vcpkg_download_distfile(
    ARCHIVE_FILE
    URLS "https://bitbucket.org/multicoreware/x265_git/downloads/x265_3.2.tar.gz"
    FILENAME "x265_3.2.tar.gz"
    SHA512 b40db6e433777f9836df1a2be5cfeec9d2ba888685b16d410194357282b385b3498119e7a881ea63e07091739279bf94ce82020c819fb5dbd5de310c1127d89d
)

vcpkg_extract_source_archive_ex(
    OUT_SOURCE_PATH SOURCE_PATH
    ARCHIVE ${ARCHIVE_FILE}
    REF 3.2
    HEAD_REF master
    PATCHES
        disable-install-pdb.patch
)

portfile.zip

@DrGul DrGul changed the title [openimageio:x64-windows] build failure, download x265 failed [openimageio:x64-windows] building dependency x265 failed cause faulty download link Aug 21, 2020
@DrGul DrGul changed the title [openimageio:x64-windows] building dependency x265 failed cause faulty download link [openimageio:x64-windows] building dependency x265 failed cause old download link Aug 21, 2020
@DrGul DrGul changed the title [openimageio:x64-windows] building dependency x265 failed cause old download link [openimageio:x64-windows] building dependency x265 failed cause of old download link Aug 21, 2020
@StarGate-One
Copy link
Contributor

This issue was fixed with PR #13048 - the portfile.cmake was changed to pull from a github mirror, along with the version being upgraded to 3.4

@DrGul DrGul closed this as completed Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants