-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libusb cmake not configuring correctly #12150
Comments
Hi @Kikadass The official instructions for installing the librealsense SDK from source code can be found at the link below. https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md A command for manually installing libusb-1.0-0-dev is included in the list of instructions.
|
Thank you for your response. However, as I mentioned, I know that installing libusb manually will fix it, but in the CMake code there is a mechanism to try to install it if it its missing. That mechanism is broken, therefor I raised an issue/bug. I would recommend fixing it or removing it completely. |
I will pass your suggestion on to the development team. |
Case closed after feedback passed on to development team. |
This affects the last supported version for L515, at version v2.51.1. |
I am trying to get the repo through FetchContent and compiling the code.
However, I did not install libusb-1.0-0-dev, and I see in the cmake configuration that this project is supposed to download it itself through ExternalProject found in CMake/external_libusb.cmake (https://github.com/IntelRealSense/librealsense/blob/master/CMake/external_libusb.cmake)
The problem is that libusb/core.c needs config.h, which I believe to be generated through autoconf, but this repo is not using autoconf to generate those files. Therefor, there a compiler issue as found in issue #4469
I fixed it by downloading libusb-1.0-0-dev, however, I still think this is a bug, as the code to download libusb exists inside this CMake project, but is not working.
Therefor, I think the external_libusb.cmake should be fixed.
I appreciate your hard work.
The text was updated successfully, but these errors were encountered: