microsoft / vcpkg

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

realsense2 build failure #40959

Open Ali-AliAli-Ali opened 6 days ago

Ali-AliAli-Ali commented 6 days ago

Operating system

Windows 11 Pro

Compiler

MSVC 14.41.34120

Steps to reproduce the behavior

vcpkg install realsense2

Failure logs

vcpkg-cmake-config:x64-windows package ABI: 51545a1ae424c83d3f11ef868c1f1b0ce1fcc07e817addfb39d7bb990d63ffb4
Installing 3/3 realsense2:x64-windows@2.54.2#2...
Building realsense2:x64-windows@2.54.2#2...
-- Downloading https://github.com/IntelRealSense/librealsense/archive/v2.54.2.tar.gz -> IntelRealSense-librealsense-v2.54.2.tar.gz...

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

      Failed to download file with error: no such file or directory
      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)
  scripts/cmake/vcpkg_from_github.cmake:106 (vcpkg_download_distfile)
  ports/realsense2/portfile.cmake:1 (vcpkg_from_github)
  scripts/ports.cmake:192 (include)

error: building realsense2:x64-windows failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle realsense2:x64-windows: 89.7 ms
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+realsense2
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[realsense2]+Build+error+on+x64-windows&body=Copy+issue+body+from+C%3A%2FUsers%2F%D0%AD%D0%BB%D0%B8%D0%BD%D0%B0%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Additional context

Basic installation of the newest version of Intel® RealSense™ SDK 2.0 has led to the following error when opening the app:

RealSense error calling rs2_create_context_ex(api_version:25501, json_settings:{): failed to convert special folder: errno=42. 

which, according to the issue, is a bug.

The attempt to build the app locally via the GitHub repo has led to the upper error. If the problem is caused by the default download of the old version of the app (2.54), please, update the downloading script to 2.55 or 2.56 (beta). If not, I'm kindly asking for help in the comments.

LilyWangLL commented 6 days ago

I can't repro this issue locally, the install log as below. If you manually access this download address https://github.com/IntelRealSense/librealsense/archive/v2.54.2.tar.gz, can your machine successfully download it?

Restored 0 package(s) from C:\Users\user\AppData\Local\vcpkg\archives in 116 us. Use --debug to see more details.
Installing 1/1 realsense2:x64-windows@2.54.2#2...
Building realsense2:x64-windows@2.54.2#2...
-- Downloading https://github.com/IntelRealSense/librealsense/archive/v2.54.2.tar.gz -> IntelRealSense-librealsense-v2.54.2.tar.gz...
-- Extracting source F:/0829/downloads/IntelRealSense-librealsense-v2.54.2.tar.gz
Ali-AliAli-Ali commented 6 days ago

Hi, @LilyWangLL, Thank you for your response! Manual download of the archive you've given made no difference, even when the archive is put into the folder C:\Users\<user>\AppData\Local\vcpkg\archives where <user> is my username.

Could you please specify where to save the archive or what info I can provide for you to reproduce the problem?

Ali-AliAli-Ali commented 6 days ago

The problem remains if the achive is put into C:\Users\<user>\AppData\Local\vcpkg\downloads according to similar issue.

Ali-AliAli-Ali commented 2 days ago

Hasn't solve the problem here, just installed .exe of the earlier version of RealSense - 2.47.