Vcpkg: Error: Building package realsense2:x64-linux failed with: BUILD_FAILED

Created on 3 Jun 2020  路  5Comments  路  Source: microsoft/vcpkg

Host Environment

OS: Ubuntu 16.04
Compiler: gcc 5.5.0

I'm trying to install the realsense software following these steps (https://github.com/IntelRealSense/librealsense). When I run ./vcpkg install realsense2 this error appears:

Computing installation plan...
The following packages will be built and installed:
    realsense2[core]:x64-linux
Starting package 1/1: realsense2:x64-linux
Building package realsense2[core]:x64-linux...
-- Using cached /home/eva-isr/vcpkg/downloads/IntelRealSense-librealsense-025fccf76803ee6a6e60de9f18ac6193b7ff8597.tar.gz
-- Using source at /home/eva-isr/vcpkg/buildtrees/realsense2/src/93b7ff8597-4347a45ee5
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
    Command failed: /home/eva-isr/vcpkg/downloads/tools/cmake-3.17.2-linux/cmake-3.17.2-Linux-x86_64/bin/cmake --build . --config Debug --target install -- -v
    Working Directory: /home/eva-isr/vcpkg/buildtrees/realsense2/x64-linux-dbg
    See logs for more information:
      /home/eva-isr/vcpkg/buildtrees/realsense2/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:91 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
  ports/realsense2/portfile.cmake:47 (vcpkg_install_cmake)
  scripts/ports.cmake:90 (include)


Error: Building package realsense2:x64-linux 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: realsense2:x64-linux
  Vcpkg version: 2020.02.04-unknownhash

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

port-bug

All 5 comments

realsense2 build failed on Linux with the following error, now libusb build failed on Linux, and it will be fixed in PR #9561. Waiting for PR #9561 merged, I will continue fix realsense2:x64-linux build error.

vcpkg/buildtrees/realsense2/x64-linux-dbg/third-party/libusb/libusb/core.c:23:10: fatal error: config.h: No such file or directory
vcpkg/buildtrees/realsense2/x64-linux-dbg/third-party/libusb/libusb/hotplug.c:22:10: fatal error: config.h: No such file or directory
vcpkg/buildtrees/realsense2/x64-linux-dbg/third-party/libusb/libusb/descriptor.c:22:10: fatal error: config.h: No such file or directory

Repeated on my machine Ubuntu 18.04

./vcpkg install realsense2
Computing installation plan...
The following packages will be built and installed:
    realsense2[core]:x64-linux
Starting package 1/1: realsense2:x64-linux
Building package realsense2[core]:x64-linux...
-- Downloading https://github.com/IntelRealSense/librealsense/archive/025fccf76803ee6a6e60de9f18ac6193b7ff8597.tar.gz...
-- Extracting source /home/etv/vcpkg/downloads/IntelRealSense-librealsense-025fccf76803ee6a6e60de9f18ac6193b7ff8597.tar.gz
-- Applying patch fix_openni2.patch
-- Applying patch fix-dependency-glfw3.patch
-- Using source at /home/etv/vcpkg/buildtrees/realsense2/src/93b7ff8597-4347a45ee5
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
    Command failed: /home/etv/vcpkg/downloads/tools/cmake-3.17.2-linux/cmake-3.17.2-Linux-x86_64/bin/cmake --build . --config Debug --target install -- -v
    Working Directory: /home/etv/vcpkg/buildtrees/realsense2/x64-linux-dbg
    See logs for more information:
      /home/etv/vcpkg/buildtrees/realsense2/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:91 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
  ports/realsense2/portfile.cmake:47 (vcpkg_install_cmake)
  scripts/ports.cmake:73 (include)


Error: Building package realsense2:x64-linux 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: realsense2:x64-linux
  Vcpkg version: 2020.02.04-unknownhash

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

Repeated on Ubuntu 18.04 with a newer Vcpkg version. Any update on this?

Computing installation plan...
The following packages will be built and installed:
    realsense2[core]:x64-linux
Detecting compiler hash for triplet x64-linux...
Starting package 1/1: realsense2:x64-linux
Building package realsense2[core]:x64-linux...
Could not locate cached archive: /home/jvdhooft/.cache/vcpkg/archives/ec/ecb61cb4bdd659a5f003454dd50e0357f6bb52ec.zip
-- Using cached /home/jvdhooft/vcpkg/downloads/IntelRealSense-librealsense-025fccf76803ee6a6e60de9f18ac6193b7ff8597.tar.gz
-- Cleaning sources at /home/jvdhooft/vcpkg/buildtrees/realsense2/src/93b7ff8597-4347a45ee5.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/jvdhooft/vcpkg/downloads/IntelRealSense-librealsense-025fccf76803ee6a6e60de9f18ac6193b7ff8597.tar.gz
-- Applying patch fix_openni2.patch
-- Applying patch fix-dependency-glfw3.patch
-- Using source at /home/jvdhooft/vcpkg/buildtrees/realsense2/src/93b7ff8597-4347a45ee5.clean
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:139 (message):
    Command failed: /home/jvdhooft/vcpkg/downloads/tools/cmake-3.17.2-linux/cmake-3.17.2-Linux-x86_64/bin/cmake --build . --config Debug --target install -- -v
    Working Directory: /home/jvdhooft/vcpkg/buildtrees/realsense2/x64-linux-dbg
    See logs for more information:
      /home/jvdhooft/vcpkg/buildtrees/realsense2/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:91 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
  ports/realsense2/portfile.cmake:47 (vcpkg_install_cmake)
  scripts/ports.cmake:79 (include)


Error: Building package realsense2:x64-linux 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: realsense2:x64-linux
  Vcpkg version: 2020.06.15-unknownhash

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

Very same problem on CentOS Linux release 7.8.2003 (Core) (VirtualBox VM).
PR #9561 seems merged. @LilyWangL any news about this issue? Maybe even a workaround waiting for the fix? Thanks.

Thanks for your reply. I will confirm this issue soon.

Was this page helpful?
0 / 5 - 0 ratings