jetsonhacks / installLibrealsense

Install librealsense for Intel Realsense cameras on Jetson development kits
MIT License
12 stars 11 forks source link

glfw compile error on jetson tx1 L4T 24.1 #2

Closed sclin-loauas closed 7 years ago

sclin-loauas commented 8 years ago

I tried to install librealsense on jetson tx1 using 'installLibrealsenseUVC.sh' shell file. Some link errors show up when compiling glfw. The errors are like this: libGL.so: undefined reference to 'drm......

I have searched some similar issues in the github page of librealsense. It seems like the problem is related to the NVIDIA driver on PC. But I have flashed the system with jetpack. Do I need to install the driver manuelly?

jetsonhacks commented 8 years ago

Are you running 64 bit L4T? L4T 64 it has issues with the soft link for libGL.so and the MESA library. One fix is:

cd /usr/lib/aarch64-linux-gnu sudo rm libGL.so sudo ln -s /usr/lib/aarch64-linux-gnu/tegra/libGL.so libGL.so

sclin-loauas commented 8 years ago

@jetsonhacks I am running 64 bit L4T. But it is the same on 32 bit L4T. Your solution fixed the glfw issue on both systems. But another issue shows up while I continuing installation. I use installLibrealsenseUVC.sh shell file. The lib and examples are compiled correctly. But when I plug in R200 and start cpp-config-ui, the program crashes and throws an error message: uvc_set_ctrl(...) returned LIBUSB_ERROR_PIPE

jetsonhacks commented 8 years ago

Have you tried running the example with sudo? It could be that when the script aborted the udev rules did not get put into place. Also, are you plugging into the USB port, or into a hub. If using a 3.0 hub, is it powered?

sclin-loauas commented 8 years ago

I have tried sudo command which outputs the same error message. And I plugged into the USB 3.0 port of tx1 develop kit.

vftejada commented 8 years ago

Got the same error running the example with sudo and R200 directly plugged into USB 3.0

sclin-loauas commented 8 years ago

The problem is solved. However I do not know why. I tried another fork of librealsense https://github.com/Maghoumi/librealsense. It does not work at first. But It goes well after I unplug and plug in the camera several times.

vftejada commented 8 years ago

I haven't tried any other fork but I managed to successfully run all the examples plugging an unplugging the camera several times as well. I remembered I had the same kind of issues with the previous Jetpack

jetsonhacks commented 7 years ago

For the TX1, please use the repository: https://github.com/jetsonhacks/installLibrealsenseTX1