Vcpkg: [x265] build failure

Created on 21 Aug 2020  路  4Comments  路  Source: microsoft/vcpkg

Host Environment

  • OS: Windows
  • Compiler: ?

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

Failure logs
Add any other context about the problem here, such as what you have already tried to resolve the issue.
Building package x265[core]:x64-windows...
Could not locate cached archive: C:\Users\simono\AppData\Local\vcpkg/archives\27\27b91bdd30a5d415bc5eb14cca158ea03aa5e08c.zip
-- 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 //vmware-host/Shared Folders/raid/compile/windows10/oiio/vcpkg/scripts/cmake/vcpkg_download_distfile.cmake:176 (message):

  Failed to download file.
  If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY environment
  variables to "https://user:password@your-proxy-ip-address:port/".
  Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues

Call Stack (most recent call first):
//vmware-host/Shared Folders/raid/compile/windows10/oiio/vcpkg/scripts/cmake/vcpkg_from_bitbucket.cmake:127 (vcpkg_download_distfile)
//vmware-host/Shared Folders/raid/compile/windows10/oiio/vcpkg/ports/x265/portfile.cmake:3 (vcpkg_from_bitbucket)
//vmware-host/Shared Folders/raid/compile/windows10/oiio/vcpkg/scripts/ports.cmake:79 (include)

Error: Building package x265:x64-windows 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: x265:x64-windows
Vcpkg version: 2020.06.15-nohash

Additionally, attach any relevant sections from the log files above.

It seems to be a dead link.

port-bug

Most helpful comment

Looks like there is a github mirror: https://github.com/videolan/x265 there is a 3.2 tag but there is a verison 3.4 tag - do not know if upgrading it to latest version would cause incompatibilities???

If you rename the [vcpkg-root]\ports\x265\portfile.cmake and put this file in its place, renaming it from portfile.cmake.txt to portfile.cmake it should download/install, but no guarantees as I did not do the install, just a download to verify the SHA512 signature.
portfile.cmake.txt
Note: This is for the version 3.2 already in vcpkg.

All 4 comments

Looks like there is a github mirror: https://github.com/videolan/x265 there is a 3.2 tag but there is a verison 3.4 tag - do not know if upgrading it to latest version would cause incompatibilities???

If you rename the [vcpkg-root]\ports\x265\portfile.cmake and put this file in its place, renaming it from portfile.cmake.txt to portfile.cmake it should download/install, but no guarantees as I did not do the install, just a download to verify the SHA512 signature.
portfile.cmake.txt
Note: This is for the version 3.2 already in vcpkg.

Hi @simonouel and @StarGate-One

Thanks for posting this issue.

It seems that the archive is not available now. We need to fix it later.

It's duplicated to #13035, so let's track this issue here.

Building package x265[core]:x64-windows...
Could not locate cached archive: C:\Users\simono\AppData\Local\vcpkg/archives\2f\2f8423760b389b7da223794934e526a7f066c102.zip
-- Downloading https://github.com/videolan/x265/archive/3.2.tar.gz...
-- Extracting source R:/compile/windows10/oiio/vcpkg/downloads/videolan-x265-3.2.tar.gz
-- Applying patch disable-install-pdb.patch
-- Using source at R:/compile/windows10/oiio/vcpkg/buildtrees/x265/src/3.2-a5eb5025c9.clean
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Fixing pkgconfig file: R:/compile/windows10/oiio/vcpkg/packages/x265_x64-windows/lib/pkgconfig/x265.pc
-- Fixing pkgconfig file: R:/compile/windows10/oiio/vcpkg/packages/x265_x64-windows/debug/lib/pkgconfig/x265.pc
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\Users\simono\AppData\Local\vcpkg/archives\2f\2f8423760b389b7da223794934e526a7f066c102.zip
Building package x265[core]:x64-windows... done
Installing package x265[core]:x64-windows...
Installing package x265[core]:x64-windows... done
Elapsed time for package x265:x64-windows: 9.235 min

Thanks!!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cjvaijo picture cjvaijo  路  3Comments

husseinalihazime picture husseinalihazime  路  3Comments

ThinkalVB picture ThinkalVB  路  3Comments

LilyWangL picture LilyWangL  路  3Comments

pakdel picture pakdel  路  3Comments