microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.08k stars 6.37k forks source link

Error: Building package boost-config:x86-windows failed with: BUILD_FAILED #19352

Closed Nameisedith closed 3 years ago

Nameisedith commented 3 years ago

I want to use vcptk to intall pcl,but I have some trouble during installation.Please help me solve these.

C:\vcptk\vcpkg-master>.\vcpkg install pcl Computing installation plan... The following packages will be built and installed:

[DEBUG] C:\a\1\s\src\vcpkg\base\downloads.cpp(626) [DEBUG] Exiting after 97160 us (76994 us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:251 (message):

  Failed to download file.
  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. You 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): installed/x86-windows/share/boost-vcpkg-helpers/boost-modular-headers.cmake:17 (vcpkg_download_distfile) ports/boost-config/portfile.cmake:12 (boost_modular_headers) scripts/ports.cmake:141 (include)

Error: Building package boost-config:x86-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: boost-config:x86-windows Vcpkg version: 2021-07-26-9425cf5f512f242c0bcbabac31f08832825aee81

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

Nameisedith commented 3 years ago

My system is Win10 x64.I try to install pclx64,but failed.

C:\vcptk\vcpkg-master>.\vcpkg isntall pcl:x64-windows invalid command: isntall Commands: vcpkg search [pat] Search for packages available to be built vcpkg install ... Install a package vcpkg remove ... Uninstall a package vcpkg remove --outdated Uninstall all out-of-date packages vcpkg list List installed packages vcpkg update Display list of packages for updating vcpkg upgrade Rebuild all outdated packages vcpkg x-history (Experimental) Shows the history of CONTROL versions of a package vcpkg hash [alg] Hash a file by specific algorithm, default SHA512 vcpkg help topics Display the list of help topics vcpkg help Display help for a specific topic

vcpkg integrate install Make installed packages available user-wide. Requires admin privileges on first use vcpkg integrate remove Remove user-wide integration vcpkg integrate project Generate a referencing nuget package for individual VS project use vcpkg integrate powershell Enable PowerShell tab-completion

vcpkg export ... [opt]... Exports a package vcpkg edit Open up a port for editing (uses %EDITOR%, default 'code') vcpkg create [archivename] Create a new package vcpkg x-init-registry Initializes a registry in the directory vcpkg owns Search for files in installed packages vcpkg depend-info ... Display a list of dependencies for packages vcpkg env Creates a clean shell environment for development or compiling vcpkg version Display version information vcpkg contact Display contact information to send feedback

Options: --triplet= Specify the target architecture triplet. See 'vcpkg help triplet' (default: %VCPKG_DEFAULT_TRIPLET%) --host-triplet= Specify the host architecture triplet. See 'vcpkg help triplet' (default: %VCPKG_DEFAULT_HOST_TRIPLET%) --overlay-ports= Specify directories to be used when searching for ports (also: %VCPKG_OVERLAY_PORTS%) --overlay-triplets= Specify directories containing triplets files (also: %VCPKG_OVERLAY_TRIPLETS%) --binarysource= Add sources for binary caching. See 'vcpkg help binarycaching' --downloads-root= Specify the downloads root directory (default: %VCPKG_DOWNLOADS%) --vcpkg-root= Specify the vcpkg root directory (default: %VCPKG_ROOT%) --x-buildtrees-root= (Experimental) Specify the buildtrees root directory --x-install-root= (Experimental) Specify the install root directory --x-packages-root= (Experimental) Specify the packages root directory --x-scripts-root= (Experimental) Specify the scripts root directory --x-builtin-ports-root= (Experimental) Specify the packages root directory --x-builtin-registry-versions-dir= (Experimental) Specify the versions root directory --x-json (Experimental) Request JSON output

@response_file Specify a response file to provide additional parameters

For more help (including examples) see the accompanying README.md and docs folder.

Thus,the command I'm using now is C:\vcptk\vcpkg-master>.\vcpkg install pcl

PhoebeHui commented 3 years ago

@Nameisedith, could you try if the solution provided in https://github.com/microsoft/vcpkg/issues/13348#issue-692784879 works for you? We have increased the timeouts for downloads in vcpkg tool, the next release should include the improvements.

C:\vcptk\vcpkg-master>.\vcpkg isntall pcl:x64-windows invalid command: isntall

It should be .\vcpkg install pcl:x64-windows

PhoebeHui commented 3 years ago

@Nameisedith, has the problem been solved?

Nameisedith commented 3 years ago

Thanks for your advice.Your advice helped me  solve this problem sucessfully.

------------------ 原始邮件 ------------------ 发件人: "microsoft/vcpkg" @.>; 发送时间: 2021年8月4日(星期三) 下午4:16 @.>; @.**@.>; 主题: Re: [microsoft/vcpkg] Error: Building package boost-config:x86-windows failed with: BUILD_FAILED (#19352)

@Nameisedith, has the problem been solved?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.