This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# For both Xavier (without dGPU) and Pegasus (with dGPU)) | |
NV_DEV="--device /dev/nvidiactl --device /dev/nvmap" | |
NV_DGPU="--device /dev/nvgpu-pci" | |
# To Do: for xavier (without dGPU) | |
NV_IGPU=$(\ls /dev/nvhost* | xargs -I{} echo '--device {}') | |
NV_LIBS="-v /usr/lib/libcuda.so.1:/usr/lib/libcuda.so.1 $(\ls /usr/lib/libnv* | xargs -I{} echo '-v {}:{}')" | |
GL_LIBS="$(\ls /usr/lib/lib*GL* | xargs -I{} echo '-v {}:{}')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(CMAKE_SYSTEM_NAME Linux) | |
# Specify the cross compiler | |
set(TOOLCHAIN "$ENV{HOME}/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu") | |
set(CMAKE_CXX_COMPILER "${TOOLCHAIN}/bin/aarch64-linux-gnu-g++") | |
set(CMAKE_C_COMPILER "${TOOLCHAIN}/bin/aarch64-linux-gnu-gcc") | |
# Targetfs path | |
set(ROS_SYSROOT "$ENV{HOME}/nvidia/nvidia_sdk/DRIVE/Linux/5.0.10.3/OS/DriveSDK/drive-t186ref-linux/targetfs") |