IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.6k stars 4.83k forks source link

Can't configure librealsense #2737

Closed Ace-242 closed 5 years ago

Ace-242 commented 5 years ago

Required Info
Camera Model { R200 / F200 / SR300 / ZR300 / D400 }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version {Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS
Kernel Version (Linux Only) (e.g. 4.14.13)
Platform PC/Raspberry Pi/ NVIDIA Jetson / etc..
SDK Version { legacy / 2.<?>.<?> }
Language {C/C#/labview/nodejs/opencv/pcl/python/unity }
Segment {Robot/Smartphone/VR/AR/others }

Issue Description

<Describe your issue / question / feature request / etc..>

Ace-242 commented 5 years ago

I am challenging Cmake to use both Realsense and PCL with reference to this page. https://github.com/IntelRealSense/librealsense/tree/master/wrappers/pcl

However, I get the following error and I can not configure it. CMake Error at D:/ProgramFiles/CMake/share/cmake-3.12/Modules/ExternalProject.cmake:2324 (message): error: could not find git for clone of libusb

Although the URL of libusb is present, it seems that the directory can not be found, but what is the problem?

dorodnic commented 5 years ago

Hi @Ace-242 I believe what is missing is git installed on the system. You can resolve this for now by unchecking BUILD_WITH_TM2 flag in CMake UI.

Ace-242 commented 5 years ago

Hi dorodnic. Thank you! Thanks to you I solved the problem.

Could you tell me why you can do this once unchecking "BUILD_WITH_TM2" this for future study?

dorodnic commented 5 years ago

At the moment, to support the TM2 (T265) device we need libusb. Since there is no packaged version available on Windows, our CMake will pull latest version from official GitHub and build it for you. This requires git. However, TM2 modules are not yet available for purchase to the general public, so unless you received one via our partners program, you don't really need it in librealsense for now.

Ace-242 commented 5 years ago

Thanks to you I understood.

galadash commented 5 years ago

Hi, I'm sorry to "reopen" this issue, but I encounter the same issue, and even while unchecking BUILD_WITH_TM2, I get the same issue. What should I do to troubleshoot?

CMake

galadash commented 5 years ago

Hi, as I also commented on #2719 , I have been able to solve this issue on my machine.

Direct link to my solution here.