No CMAKE_CUDA_COMPILER when building Realsense Library

Hi all,

I am using a Jetson TX2 on the Developer board and attempting to use the Realsense D435 Depth camera on this device. I have been using the Jetson hacks repository https://github.com/jetsonhacks/buildLibrealsense2TX to build the librealsense. When I run the

installLibrealsense.sh

it gets to line 116 in the script which is

${HOME}/CMake/bin/cmake ../ -DBUILD_EXAMPLES=true -DBUILD_WITH_CUDA=true

I have tried searching around but am unfamiliar with cuda and the cuda compiler. Any help would be much appreciated!

images of errors:
https://drive.google.com/file/d/1RtLGHCv4V0cnC6yP1UCuy1sozTElqhnw/view?usp=sharing
https://drive.google.com/file/d/1jU3pKBtGjXQO5syJYRD5W4JGyJHRc1aZ/view?usp=sharing

Hi,

This is a known issue of jetsonhacks:
[url]https://github.com/jetsonhacks/buildLibrealsense2TX/issues/13[/url]

Please execute the installLibrealsense.sh script with sudo to solve this ownership issue.
Thanks.