To compile the samples or any user code using the NVIDIA® DriveWorks SDK, you must use cross-compilation from a Linux host. For this, in addition to the requirements above, you must have the following additional components:
/usr/local/cuda-safe-<version>/. If they are missing please refer to the NVIDIA SDK Manager documentation.DriveSDK to point to the SDK/PDK folders: ``` /path/to/drive-t186ref-qnx (NVIDIA DRIVE platform) `` or define this location as acmakecommand line argument: `` -DVIBRANTE_PDK:STRING=/path/to/drive-t186ref-qnx ``Set the environment variableQNX_HOSTto path/to/sw/tools/embedded/qnx/qnx700-ga<version>/host/linux/x86_64Set the environment variableQNX_TARGETto path/to/sw/tools/embedded/qnx/qnx700-ga<version>/target/qnx7`QNX_BASE to path/to/drive-t186ref-qnx/targetfsQNX_TOP to path/to/drive-t186ref-qnx/.. <version> with the actual version provided by the SDK Manager.Cross-compile:
To streamline the deploy process, you can set the cmake definitions as environment variables.
The build folder can be created anywhere in the system, however if it is outside of your home folder, you will probably need to run the commands with sudo.
-DCUDA_DIR=/path/to/qnx/cuda/libraries is needed only if they are not installed under /usr/local/cudaWhen you manually upload the sample to the target device, you copy the cross- compiled binaries to a device with IP AGX_IP as user root.
On the host system, execute:
/mnt folder instead.