microsoft / vcpkg

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

QField Android Platform Setup Error[boost-vcpkg-helpers] Build error on x64-windows #35779

Closed ajithandro closed 8 months ago

ajithandro commented 11 months ago

Package: boost-vcpkg-helpers:x64-windows -> 1.83.0

Host Environment

To Reproduce

vcpkg install Failure logs

-- Downloading https://raw.githubusercontent.com/boostorg/boost/boost-1.83.0/LICENSE_1_0.txt -> boost_LICENSE_1_0.txt...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from D:\Projects\build-QField-Desktop_x86_windows_msvc2022_pe_64bit-Debug\_deps\vcpkg-src\vcpkg-bundle.json
[DEBUG] Failed to open: D:\Projects\build-QField-Desktop_x86_windows_msvc2022_pe_64bit-Debug\_deps\vcpkg-src\vcpkg-bundle.json
[DEBUG] Bundle config: readonly=false, usegitregistry=false, embeddedsha=nullopt, deployment=Git, vsversion=nullopt
[DEBUG] Metrics enabled.
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Feature flag 'dependencygraph' unset
Downloading https://raw.githubusercontent.com/boostorg/boost/boost-1.83.0/LICENSE_1_0.txt
warning: Download failed -- retrying after 1000ms
warning: Download failed -- retrying after 2000ms
warning: Download failed -- retrying after 4000ms
error: Failed to download from mirror set
error: https://raw.githubusercontent.com/boostorg/boost/boost-1.83.0/LICENSE_1_0.txt: WinHttpSendRequest failed with exit code 12002
error: https://raw.githubusercontent.com/boostorg/boost/boost-1.83.0/LICENSE_1_0.txt: WinHttpSendRequest failed with exit code 12002
error: https://raw.githubusercontent.com/boostorg/boost/boost-1.83.0/LICENSE_1_0.txt: WinHttpSendRequest failed with exit code 12002
error: https://raw.githubusercontent.com/boostorg/boost/boost-1.83.0/LICENSE_1_0.txt: WinHttpSendRequest failed with exit code 12002
[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(1048): 
[DEBUG] Time in subprocesses: 0us
[DEBUG] Time in parsing JSON: 23us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 6335us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 2.9 min (175636157us)

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

      Failed to download file with error: 1
      If you are using 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. 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 out of service.

      If you've tried directly download the link, and believe this is not a temporary
      download server failure, please submit an issue at https://github.com/Microsoft/vcpkg/issues
      to report this upstream download server failure.

Call Stack (most recent call first):
  scripts/cmake/vcpkg_download_distfile.cmake:270 (z_vcpkg_download_distfile_show_proxy_and_fail)
  ports/boost-vcpkg-helpers/portfile.cmake:4 (vcpkg_download_distfile)
  scripts/ports.cmake:170 (include)

Additional context

vcpkg.json ``` { "name": "qfield", "version-string": "dev", "port-version": 1, "homepage": "https://github.com/opengisch/qfield", "description": "A simplified and touch optimized frontend for QGIS.", "dependencies": [ { "name": "gdal", "default-features": false }, "qgis-qt6", { "name": "qtsensors", "features": [ "qml" ] }, "qtwebview", "qtconnectivity", "qtdeclarative", "qtlocation", { "name": "qtcharts", "features": [ "qml" ] }, { "name": "qtmultimedia", "features": [ "qml" ] }, "qtserialport", { "name": "qca-qt6", "default-features": false }, "nu-book-zxing-cpp", { "name": "sentry-native", "platform": "!android & !ios & !osx" }, "spix-qt6", "catch2", { "name": "sentry-cocoa", "platform": "ios | osx" } ] } ```
autoantwort commented 11 months ago

See https://github.com/microsoft/vcpkg/issues/29395

ajithandro commented 11 months ago

Once Used VPN the URL which Mentioned Below is Accessible in Browsers, Even though it faces the same issue on executing the build script via Bash Terminal Command Executed : cmake -S D:/Projects/QField/ -B C:/build -D VCPKG_TARGET_TRIPLET=x64-windows-static -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded:Debug -D PKG_CONFIG_EXECUTABLE=build/vcpkg_installed/x64-windows/tools/pkgconf/pkgconf.exe -D VCPKG_INSTALL_OPTIONS="--x-buildtrees-root=C:/build" https://[raw.githubusercontent.com/boostorg/boost/boost-1.83.0/LICENSE_1_0.txt](https://raw.githubusercontent.com/boostorg/boost/boost-1.83.0/LICENSE_1_0.txt) image

FrankXie05 commented 11 months ago

@ajithandro Please pass vcpkg through the proxy as well. :)

ajithandro commented 10 months ago

@FrankXie05 Can you Please Give Me Some More Details on Pass Vcpkg through the proxy, Still I'm Stuck in the Same Position, Now I'm trying to set this with the Linux environment I'm getting the same in that too

FrankXie05 commented 10 months ago

@ajithandro

  1. You can manually access, so there is no problem with this link.
  2. You can run vcpkg again and manually observe your proxy server logs to see if vcpkg’s access request is denied due to firewall or proxy server rule settings.
FrankXie05 commented 8 months ago

We hope your question was answered to your satisfaction; if it wasn't, you can ping me with more info and I will reopen.